作者 xwp
1 个管道 的构建 通过 耗费 9 秒

登录逻辑修改

@@ -157,6 +157,7 @@ class User extends Api @@ -157,6 +157,7 @@ class User extends Api
157 $return['user_info'] = $this->auth->getUserinfo(); 157 $return['user_info'] = $this->auth->getUserinfo();
158 } else { 158 } else {
159 if(!empty($mobile)){ 159 if(!empty($mobile)){
  160 + $return['123'] = '123';
160 $this->register($openid,empty($mobile)?'':$mobile); 161 $this->register($openid,empty($mobile)?'':$mobile);
161 $return['user_info'] = $this->auth->getUserinfo(); 162 $return['user_info'] = $this->auth->getUserinfo();
162 }else{ 163 }else{
@@ -166,6 +167,7 @@ class User extends Api @@ -166,6 +167,7 @@ class User extends Api
166 167
167 168
168 $return['session'] = $session; 169 $return['session'] = $session;
  170 + $return['mobile'] = $mobile;
169 171
170 $this->success('Logged in successful', $return); 172 $this->success('Logged in successful', $return);
171 } 173 }