Commit 35112bb1 by 冷斌

fix bug

parent c62f10b7
......@@ -90,6 +90,11 @@ class PassportAction extends CommonAction
$appId = $pageKeyData['mp_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";
header("Location:{$reurl2}");
exit();
}else {
var_dump($_GET);
die;
}
}
......
......@@ -73,11 +73,6 @@
$("#preloader").hide()
});
var wxUrl = "{$wxUrl}";
if (wxUrl) {
window.location.href = wxUrl;
}
new Vue({
el: '#app',
data: function() {
......
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