lizhen_gitee пре 1 година
родитељ
комит
d5093d53e5
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      application/api/controller/User.php

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

@@ -297,8 +297,7 @@ class User extends Api
             $ret = $this->auth->ios_register($iosUserId);
         }
         if ($ret) {
-            $data = ['userinfo' => $this->auth->getUserinfo()];
-            $this->success(__('Logged in successful'), $data);
+            $this->success(__('Logged in successful'), $this->auth->getUserinfo());
         } else {
             $this->error($this->auth->getError());
         }