dever 3 years ago
parent
commit
8d3091d636
1 changed files with 7 additions and 1 deletions
  1. 7 1
      service/option/src/Auth.php

+ 7 - 1
service/option/src/Auth.php

@@ -52,7 +52,13 @@ class Auth
                 if ($debug) {
                     $msg .= '::' . $code;
                 }
-                return $msg;
+                $data['msg'] = $msg;
+                if ($user['status'] == 1) {
+                    $data['status'] = 1;
+                } else {
+                    $data['status'] = 2;
+                }
+                return $data;
             } else {
                 if ($user['status'] == 1) {
                     $idcard = Dever::input('idcard');