mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
refactor: 精简weapi的链接,统一使用uri
This commit is contained in:
+2
-2
@@ -9,8 +9,8 @@ module.exports = async (query, request) => {
|
||||
password: query.md5_password || CryptoJS.MD5(query.password).toString(),
|
||||
rememberLogin: 'true',
|
||||
}
|
||||
let result = await request('POST', `https://music.163.com/api/login`, data, {
|
||||
...createOption(query, 'weapi'),
|
||||
let result = await request('POST', `/api/login`, data, {
|
||||
...createOption(query),
|
||||
uaType: 'pc',
|
||||
})
|
||||
if (result.body.code === 502) {
|
||||
|
||||
Reference in New Issue
Block a user