lizhen_gitee 1 год назад
Родитель
Сommit
14ea39a1a5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      application/api/controller/User.php

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

@@ -95,8 +95,8 @@ class User extends Api
         }
         if ($ret) {
             Sms::flush($mobile, 'mobilelogin');
-            $data = ['is_register' => $is_register, 'userinfo' => $this->auth->getUserinfo()];
-            $this->success(__('Logged in successful'), $data);
+//            $data = ['is_register' => $is_register, 'userinfo' => $this->auth->getUserinfo()];
+            $this->success(__('Logged in successful'), $this->auth->getUserinfo());
         } else {
             $this->error($this->auth->getError());
         }