mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 14:41:23 +08:00
增加二维码登录
This commit is contained in:
+5
-1
@@ -153,7 +153,11 @@ const createRequest = (method, url, data, options) => {
|
||||
try {
|
||||
answer.body = body
|
||||
answer.status = answer.body.code || res.status
|
||||
if (answer.body.code === 502) {
|
||||
if (
|
||||
[201, 302, 400, 502, 800, 801, 802, 803].indexOf(answer.body.code) >
|
||||
-1
|
||||
) {
|
||||
// 特殊状态码
|
||||
answer.status = 200
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user