Commit e8fab4c5 by 冷斌

fix bug

parent 1b233b6a
...@@ -78,13 +78,21 @@ class PassportAction extends CommonAction ...@@ -78,13 +78,21 @@ class PassportAction extends CommonAction
if(!$this->mid){ if(!$this->mid){
$_SESSION['return_uri'] = $_SERVER['HTTP_REFERER']; $_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']; $ua = $_SERVER['HTTP_USER_AGENT'];
if (strpos($ua, 'MicroMessenger') == false && strpos($ua, 'Windows Phone') == false) { if (strpos($ua, 'MicroMessenger') == false && strpos($ua, 'Windows Phone') == false) {
} else { } else {
$reurl2 = ''; $appId = '';
$this->assign('reurl2', $reurl2); $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); // $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