Commit 88d887e1 by 冷斌

fix bug

parent 68e9c2c1
......@@ -43,6 +43,14 @@ class PassportAction extends CommonAction
// 如果设置了登录前的默认应用
// U('welcome','',true);
// 如果没设置
$ua = $_SERVER['HTTP_USER_AGENT'];
if (strpos($ua, 'MicroMessenger') == false && strpos($ua, 'Windows Phone') == false) {
echo '普通浏览器打开';
} else {
echo '微信打开';
}
die;
$this->login();
}
......
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