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

登录逻辑修改

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