fix lint error

This commit is contained in:
binaryify 2021-07-16 10:52:31 +08:00
parent 214415a119
commit 338ae58dc7
2 changed files with 14 additions and 15 deletions

View File

@ -1,17 +1,16 @@
// 音乐人签到
module.exports = (query, request) => {
const data = {}
return request(
'POST',
`https://music.163.com/weapi/creator/user/access`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}
const data = {}
return request(
'POST',
`https://music.163.com/weapi/creator/user/access`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}

View File

@ -50,7 +50,7 @@ const createRequest = (method, url, data, options) => {
if (url.includes('music.163.com'))
headers['Referer'] = 'https://music.163.com'
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')
headers['Cookie'] = Object.keys(options.cookie)
.map(