正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
@@ -143,6 +143,11 @@ class User extends Api | @@ -143,6 +143,11 @@ class User extends Api | ||
143 | $mobile = $getUserInfo['purePhoneNumber']; | 143 | $mobile = $getUserInfo['purePhoneNumber']; |
144 | 144 | ||
145 | if(isset($mobile)){ | 145 | if(isset($mobile)){ |
146 | + | ||
147 | + $user = new \app\admin\model\User; | ||
148 | + $user = $user->where(['mobile'=>$mobile,'openid'=>''])->select(); | ||
149 | + $this->success('Logged in successful', ['mobile'=>$mobile,'openid'=>'']);exit; | ||
150 | + | ||
146 | $user = new \app\admin\model\User; | 151 | $user = new \app\admin\model\User; |
147 | $user->save(['openid'=>$openid],['mobile'=>$mobile,'openid'=>'']); | 152 | $user->save(['openid'=>$openid],['mobile'=>$mobile,'openid'=>'']); |
148 | } | 153 | } |
-
请 注册 或 登录 后发表评论