Explorar el Código

完善注册登录

15954078560 hace 2 años
padre
commit
1b82fced9d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      application/api/controller/User.php

+ 2 - 1
application/api/controller/User.php

@@ -2025,7 +2025,8 @@ class User extends Api
             $ret = $this->auth->register($mobile, Random::alnum(), '', $mobile, []);
         }
         if ($ret) {
-            $data = ['userinfo' => $this->auth->getUserinfo()];
+//            $data = ['userinfo' => $this->auth->getUserinfo()];
+            $data = $this->auth->getUserinfo();
             $this->success(__('Logged in successful'), $data);
         } else {
             $this->error($this->auth->getError());