fix(net-tool): 修复响应数据异常处理,增加对状态码 200 的判断
All checks were successful
/ release (push) Successful in 29s

This commit is contained in:
zhaoyingbo 2025-02-06 09:36:40 +00:00
parent 306a55edef
commit e2472588a2

View File

@ -227,7 +227,7 @@ class NetToolBase {
})
}
// 响应数据异常
if ("code" in resData && resData.code !== 0) {
if ("code" in resData && resData.code !== 0 && resData.code !== 200) {
throw new NetError({
response: res,
code: resData.code,