root hace 2 años
padre
commit
6d5e770299
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      pages/login/login-json.js

+ 3 - 3
pages/login/login-json.js

@@ -19,7 +19,7 @@ function getLoginJson() {
                 },
                 "adaptor": function (data, response) {
                     // token 续期的问题,在app.html中进行续期判断.
-                    if (data.code != "200") {
+                    if (data.status != "0") {
                         // 登录请求提交后,刷新验证码
                         refresh_code();
                         // 弹出错误提示
@@ -31,8 +31,8 @@ function getLoginJson() {
 
                     return {
                       ...data,
-                      status: data.code == 200 ? 0 : data.code,
-                      msg: data.code == 200 ? "" : data.sysErrorMessage,
+                      status: data.status,
+                      msg: data.status == "0" ? "" : data.sysErrorMessage,
                     };
                 },
                 "messages": {