...
|
...
|
@@ -60,14 +60,8 @@ class WxloginController extends HomeBaseController |
|
|
$uid = Session::get('uid');
|
|
|
$id = Db::name('Member')->where(array('id'=>$uid,'status'=>1))->value('id');
|
|
|
if(!$id){
|
|
|
echo "<pre/>";
|
|
|
print_r('55');
|
|
|
die;
|
|
|
$this->OAuth($rediUrl);
|
|
|
}else{
|
|
|
echo "<pre/>";
|
|
|
print_r(66);
|
|
|
die;
|
|
|
$url = $rediUrl;
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -133,6 +127,10 @@ class WxloginController extends HomeBaseController |
|
|
}
|
|
|
}else{
|
|
|
$url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".Config::get('WX_APPID')."&redirect_uri=" . $redirect_uri . "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
|
|
|
echo "<pre/>";
|
|
|
print_r(111111111);
|
|
|
print_r($redirect_uri);
|
|
|
die;
|
|
|
Header("Location: $url");
|
|
|
exit;
|
|
|
}
|
...
|
...
|
|