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

登录逻辑修改

... ... @@ -157,7 +157,6 @@ class User extends Api
$return['user_info'] = $this->auth->getUserinfo();
} else {
if(!empty($mobile)){
$return['123'] = '123';
$this->register($openid,empty($mobile)?'':$mobile);
$return['user_info'] = $this->auth->getUserinfo();
}else{
... ... @@ -167,7 +166,6 @@ class User extends Api
$return['session'] = $session;
$return['mobile'] = $mobile;
$this->success('Logged in successful', $return);
}
... ...