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