Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footsen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bcc0d737
authored
3 years ago
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改broadcaster下载
parent
ccfc0440
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
b/js/newnewLang.js
b2/js/newnewLang.js
js/buriedPoint.js
b/js/newnewLang.js
View file @
bcc0d737
...
@@ -156,7 +156,7 @@ function langFlag(){
...
@@ -156,7 +156,7 @@ function langFlag(){
var
cityName
=
[
'台灣'
,
'台湾'
,
'香港'
,
'澳門'
,
'澳门'
,
'Singapore'
,
'SINGAPORE'
,
'Malaysia'
,
'MALAYSIA'
,
'未能识别的地区'
];
var
cityName
=
[
'台灣'
,
'台湾'
,
'香港'
,
'澳門'
,
'澳门'
,
'Singapore'
,
'SINGAPORE'
,
'Malaysia'
,
'MALAYSIA'
,
'未能识别的地区'
];
var
flagL
=
false
;
var
flagL
=
false
;
for
(
var
i
=
0
;
i
<
cityName
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
cityName
.
length
;
i
++
){
if
(
returnCitySN
[
"cname"
].
indexOf
(
cityName
[
i
])
>=
0
){
if
(
checkIp2
()
){
flagL
=
true
;
flagL
=
true
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
b2/js/newnewLang.js
View file @
bcc0d737
...
@@ -156,7 +156,7 @@ function langFlag(){
...
@@ -156,7 +156,7 @@ function langFlag(){
var
cityName
=
[
'台灣'
,
'台湾'
,
'香港'
,
'澳門'
,
'澳门'
,
'Singapore'
,
'SINGAPORE'
,
'Malaysia'
,
'MALAYSIA'
,
'未能识别的地区'
];
var
cityName
=
[
'台灣'
,
'台湾'
,
'香港'
,
'澳門'
,
'澳门'
,
'Singapore'
,
'SINGAPORE'
,
'Malaysia'
,
'MALAYSIA'
,
'未能识别的地区'
];
var
flagL
=
false
;
var
flagL
=
false
;
for
(
var
i
=
0
;
i
<
cityName
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
cityName
.
length
;
i
++
){
if
(
returnCitySN
[
"cname"
].
indexOf
(
cityName
[
i
])
>=
0
){
if
(
checkIp2
()
){
flagL
=
true
;
flagL
=
true
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
js/buriedPoint.js
View file @
bcc0d737
...
@@ -66,4 +66,22 @@ function checkIp() {
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment