修复部分问题

This commit is contained in:
2025-08-01 10:21:14 +08:00
parent 7c2b8b7840
commit 80c07fe756
4 changed files with 19 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ function commonsProcess(showLoading, httpReqCallback, isreturm) {
// http响应码不正确
if (statusCode != 200 && statusCode != 204 && statusCode != 201) {
isShowErrorToast = true;
infoBox.showToast(data.message || "服务器异常");
infoBox.showToast(data.message||data.msg || "服务器异常");
return Promise.reject(bodyData); // 跳转到catch函数
}
if (bodyData.code == 401) {
@@ -118,7 +118,7 @@ function commonsProcess(showLoading, httpReqCallback, isreturm) {
if (bodyData.code != 0) {
infoBox.showToast(data.message);
infoBox.showToast(data.message||data.msg);
return;
}