Browse Source

错误处理

jason.lu 6 years ago
parent
commit
e2c53f5bd3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      js/basic.js

+ 3 - 1
js/basic.js

@@ -151,7 +151,9 @@ function on_dat_success(a,b){
 }
 
 function check_if_authfail(a){
-    if(a == null || typeof a !== "string"){
+    if(a == null || typeof a !== "string") {
+        return false;
+    }else{
         if(a.indexOf("login?from=") > 0 || a.startsWith("<!DOCTYPE html>") || a.indexOf("<!-- SME::LOGINPAGE -->") > 0){
             return true;
         }