区分来源

原创
2016/11/22 21:48
阅读数 27


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<SCRIPT>
var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i)=="micromessenger") {

} else {
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {    
    window.location = "https://itunes.apple.com/cn/app/shang-hai-gong-ji-jin*/id535765124?mt=8";      
}
else {
    window.location = "http://www.shgjj.com/app/gjj_androidv2_1.apk";
}
}
</SCRIPT>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head>

<body>
<div  style=" font-size: 300%; margin:0 auto 0 auto; width:90%; line-height:39px;">
  <p>微信用户若不能安装,请点击右上角 <img src="http://www.shgjj.com/app/images/return.gif" align="absmiddle" /></p>
  <p>选择<strong  style="color:#CC0000">在浏览器(或Safari)中打开</strong></p>
  <p>即可正常下载安装</p>
</div>

</body>
</html>


-----------------------------------------------


request.getHeader("User-Agent")


IE
15:52:11,281  INFO Login:29 - Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2)
Firefox
15:52:31,062  INFO Login:29 - Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0
Chrome
15:52:48,437  INFO Login:29 - Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76 Safari/537.36

Mac
15:56:36,109  INFO Login:29 - Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1 Safari/537.73.11
iPhone
15:58:15,468  INFO Login:29 - Mozilla/5.0 (iPhone; CPU iPhone OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/11B554a QQ/4.5.0.146

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部