mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-08 00:32:06 +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