refactor: 精简weapi的链接,统一使用uri

This commit is contained in:
overwriter
2024-06-25 22:47:17 +08:00
parent d78a4990fe
commit 46718c29f1
244 changed files with 288 additions and 401 deletions
+2 -2
View File
@@ -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) {