mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
fix lint error
This commit is contained in:
parent
214415a119
commit
338ae58dc7
@ -1,17 +1,16 @@
|
|||||||
// 音乐人签到
|
// 音乐人签到
|
||||||
|
|
||||||
module.exports = (query, request) => {
|
module.exports = (query, request) => {
|
||||||
const data = {}
|
const data = {}
|
||||||
return request(
|
return request(
|
||||||
'POST',
|
'POST',
|
||||||
`https://music.163.com/weapi/creator/user/access`,
|
`https://music.163.com/weapi/creator/user/access`,
|
||||||
data,
|
data,
|
||||||
{
|
{
|
||||||
crypto: 'weapi',
|
crypto: 'weapi',
|
||||||
cookie: query.cookie,
|
cookie: query.cookie,
|
||||||
proxy: query.proxy,
|
proxy: query.proxy,
|
||||||
realIP: query.realIP,
|
realIP: query.realIP,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ const createRequest = (method, url, data, options) => {
|
|||||||
if (url.includes('music.163.com'))
|
if (url.includes('music.163.com'))
|
||||||
headers['Referer'] = 'https://music.163.com'
|
headers['Referer'] = 'https://music.163.com'
|
||||||
if (options.realIP) headers['X-Real-IP'] = options.realIP
|
if (options.realIP) headers['X-Real-IP'] = options.realIP
|
||||||
headers['X-Real-IP'] = '118.88.88.88'
|
headers['X-Real-IP'] = '118.88.88.88'
|
||||||
if (typeof options.cookie === 'object')
|
if (typeof options.cookie === 'object')
|
||||||
headers['Cookie'] = Object.keys(options.cookie)
|
headers['Cookie'] = Object.keys(options.cookie)
|
||||||
.map(
|
.map(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user