mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
fix: 返回内容code类型处理
This commit is contained in:
@@ -198,6 +198,9 @@ const createRequest = (method, url, data = {}, options) => {
|
||||
} else {
|
||||
answer.body = body
|
||||
}
|
||||
if (answer.body.code) {
|
||||
answer.body.code = Number(answer.body.code)
|
||||
}
|
||||
|
||||
answer.status = Number(answer.body.code || res.status)
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user