作者 郭文星

123

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