...
|
...
|
@@ -143,6 +143,11 @@ class User extends Api |
|
|
$mobile = $getUserInfo['purePhoneNumber'];
|
|
|
|
|
|
if(isset($mobile)){
|
|
|
|
|
|
$user = new \app\admin\model\User;
|
|
|
$user = $user->where(['mobile'=>$mobile,'openid'=>''])->select();
|
|
|
$this->success('Logged in successful', ['mobile'=>$mobile,'openid'=>'']);exit;
|
|
|
|
|
|
$user = new \app\admin\model\User;
|
|
|
$user->save(['openid'=>$openid],['mobile'=>$mobile,'openid'=>'']);
|
|
|
}
|
...
|
...
|
|