Browse Source

完善注册登录

15954078560 2 years ago
parent
commit
1b82fced9d
1 changed files with 2 additions and 1 deletions
  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, []);
             $ret = $this->auth->register($mobile, Random::alnum(), '', $mobile, []);
         }
         }
         if ($ret) {
         if ($ret) {
-            $data = ['userinfo' => $this->auth->getUserinfo()];
+//            $data = ['userinfo' => $this->auth->getUserinfo()];
+            $data = $this->auth->getUserinfo();
             $this->success(__('Logged in successful'), $data);
             $this->success(__('Logged in successful'), $data);
         } else {
         } else {
             $this->error($this->auth->getError());
             $this->error($this->auth->getError());