Commit 566a8c83 by agan

提交

parent 3efa4ad3
...@@ -382,11 +382,15 @@ ...@@ -382,11 +382,15 @@
url: url, url: url,
statusCode: { statusCode: {
404: function () { 404: function () {
window.location.href = 'https://big.bgp.ourpow.com/apk/nf/Release-ftsB.apk' window.location.href = 'https://big.bgp.ourpow.com/apk/nf/Release-ftsB.apk';
} }
}, },
success: function () { success: function () {
window.location.href = url; window.location.href = url;
//如果是安卓推特上
// if(ua.indexOf('TwitterAndroid')>-1){
// alter('请点击右上角在外部浏览器打开');
// }
} }
}); });
......
...@@ -49,6 +49,7 @@ function clickDownload(callback) { ...@@ -49,6 +49,7 @@ function clickDownload(callback) {
function checkIp() { function checkIp() {
$.ajax({ $.ajax({
url: _url + "/user/checkIpIsChina.html", url: _url + "/user/checkIpIsChina.html",
async: false,
success: function (res) { success: function (res) {
var result = JSON.parse(res); var result = JSON.parse(res);
if (result.code === 1) { if (result.code === 1) {
......
...@@ -7,8 +7,12 @@ ...@@ -7,8 +7,12 @@
<title>Document</title> <title>Document</title>
</head> </head>
<body> <body>
<div id="contain"></div>
<script> <script>
alert(navigator.userAgent); var c = document.getElementById("contain");
c.innerHTML = window.location.href + "<br>" + navigator.userAgent;
// alert(navigator.userAgent);
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
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 sign in to comment