作者 郭文星

123

... ... @@ -43,8 +43,10 @@ class Login extends Base
//查询到openid 通过openid查询到用户
$user=Db::name("user")->where('wx_xcx_openid',$res['openid'])->find();
if($user){
$res=$this->auth->direct($res['id']);
$return_data = $this->auth->getUserinfo();
//查询到了用户信息
$this->bind($user['id'],$user['moblie']);
//$this->bind($user['id'],$user['moblie']);
}else{
//未查询到用户信息 添加用户信息
$username = $res['openid'] ? $res['openid'] : suiji_num("TY");
... ...