作者 郭文星

123

@@ -43,8 +43,7 @@ class Login extends Base @@ -43,8 +43,7 @@ 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 - print_r($res);return;  
47 - $res=$this->auth->direct($res['id']); 46 + $res=$this->auth->direct($user['id']);
48 $return_data = $this->auth->getUserinfo(); 47 $return_data = $this->auth->getUserinfo();
49 //查询到了用户信息 48 //查询到了用户信息
50 //$this->bind($user['id'],$user['moblie']); 49 //$this->bind($user['id'],$user['moblie']);