...
|
...
|
@@ -25,6 +25,7 @@ class Login extends Base |
|
|
{
|
|
|
$appid = "wx58ceff4e93cfc523";
|
|
|
$AppSecret = "baf744d21875280a5e98611f66adaf91";
|
|
|
|
|
|
$post = $this->request->post();
|
|
|
$code = $post['code'];// I('post.code');
|
|
|
$encryptedData = $post['encryptedData'];//I('post.encryptedData');
|
...
|
...
|
@@ -78,7 +79,9 @@ class Login extends Base |
|
|
$moblie=$phone['phoneNumber'];
|
|
|
if($moblie){
|
|
|
Db::name("user")->where("id", $user_id)->update(["mobile" => $moblie]);
|
|
|
$this->bind($user_id,$moblie);
|
|
|
$res=$this->auth->direct($user_id);
|
|
|
$return_data = $this->auth->getUserinfo();
|
|
|
$this->success('查询用户信息成功',$return_data);
|
|
|
}else{
|
|
|
$this->error("无法获取手机号,登录失败");
|
|
|
}
|
...
|
...
|
|