فهرست منبع

完善注册登录

15954078560 2 سال پیش
والد
کامیت
1b82fced9d
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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());