dever %!s(int64=3) %!d(string=hai) anos
pai
achega
8d3091d636
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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');