Commit e8fab4c5 by 冷斌

fix bug

parent 1b233b6a
......@@ -78,13 +78,21 @@ class PassportAction extends CommonAction
if(!$this->mid){
$_SESSION['return_uri'] = $_SERVER['HTTP_REFERER'];
}
var_dump($_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);die;
//
$config = model('Xconfig')->get('pageKey:admin_Config_wxpay');
var_dump($config);
die;
$ua = $_SERVER['HTTP_USER_AGENT'];
if (strpos($ua, 'MicroMessenger') == false && strpos($ua, 'Windows Phone') == false) {
} else {
$reurl2 = '';
$this->assign('reurl2', $reurl2);
$appId = '';
$redirect_uri = urlencode('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
$reurl2 ="https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appId&redirect_uri=$redirect_uri&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
$this->assign('wxUrl', $reurl2);
}
// $this->assign('login_bg', $login_bg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment