Commit bcc0d737 by agan

修改broadcaster下载

parent ccfc0440
......@@ -156,7 +156,7 @@ function langFlag(){
var cityName = ['台灣','台湾','香港','澳門','澳门','Singapore','SINGAPORE','Malaysia','MALAYSIA','未能识别的地区'];
var flagL = false;
for(var i=0;i<cityName.length;i++){
if(returnCitySN["cname"].indexOf(cityName[i])>=0){
if(checkIp2()){
flagL = true;
}
}
......
......@@ -156,7 +156,7 @@ function langFlag(){
var cityName = ['台灣','台湾','香港','澳門','澳门','Singapore','SINGAPORE','Malaysia','MALAYSIA','未能识别的地区'];
var flagL = false;
for(var i=0;i<cityName.length;i++){
if(returnCitySN["cname"].indexOf(cityName[i])>=0){
if(checkIp2()){
flagL = true;
}
}
......
......@@ -66,4 +66,22 @@ function checkIp() {
}
}
})
}
function checkIp2() {
var ipFlag = false;
$.ajax({
url: _url + "/user/checkIpIsChina.html",
async: false,
success: function (res) {
var result = JSON.parse(res);
if (result.code === 1) {
if (result.checkResult) {
ipFlag = true;
}
}
}
})
return ipFlag
}
\ 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