mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-22 23:51:23 +08:00
refactor: 进一步封装option
This commit is contained in:
+1
-5
@@ -10,12 +10,8 @@ module.exports = async (query, request) => {
|
||||
rememberLogin: 'true',
|
||||
}
|
||||
let result = await request('POST', `https://music.163.com/api/login`, data, {
|
||||
crypto: 'weapi',
|
||||
...createOption(query, 'weapi'),
|
||||
uaType: 'pc',
|
||||
cookie: query.cookie,
|
||||
ua: query.ua || '',
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
})
|
||||
if (result.body.code === 502) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user