修复部分问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user