正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -43,8 +43,10 @@ class Login extends Base | @@ -43,8 +43,10 @@ class Login extends Base | ||
43 | //查询到openid 通过openid查询到用户 | 43 | //查询到openid 通过openid查询到用户 |
44 | $user=Db::name("user")->where('wx_xcx_openid',$res['openid'])->find(); | 44 | $user=Db::name("user")->where('wx_xcx_openid',$res['openid'])->find(); |
45 | if($user){ | 45 | if($user){ |
46 | + $res=$this->auth->direct($res['id']); | ||
47 | + $return_data = $this->auth->getUserinfo(); | ||
46 | //查询到了用户信息 | 48 | //查询到了用户信息 |
47 | - $this->bind($user['id'],$user['moblie']); | 49 | + //$this->bind($user['id'],$user['moblie']); |
48 | }else{ | 50 | }else{ |
49 | //未查询到用户信息 添加用户信息 | 51 | //未查询到用户信息 添加用户信息 |
50 | $username = $res['openid'] ? $res['openid'] : suiji_num("TY"); | 52 | $username = $res['openid'] ? $res['openid'] : suiji_num("TY"); |
-
请 注册 或 登录 后发表评论