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
662e81d7
authored
Jan 08, 2022
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qudao
parent
6930db73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
30 deletions
b/download.html
js/buriedPoint.js
b/download.html
View file @
662e81d7
...
...
@@ -373,35 +373,21 @@
function
toDown
()
{
clickDownload
();
copyText
(
andoridData
);
var
url
=
'https://big.bgp.ourpow.com/apk/nf/Release-'
+
andoridData
+
'.apk'
;
var
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
url
);
xhr
.
send
();
xhr
.
onreadystatechange
=
function
()
{
if
(
xhr
.
status
==
200
)
{
xhr
.
abort
();
window
.
location
.
href
=
url
;
}
else
if
(
xhr
.
status
==
404
)
{
window
.
location
.
href
=
'https://big.bgp.ourpow.com/apk/nf/Release-ftsB.apk'
;
clickDownload
(
function
(
data
)
{
copyText
(
data
);
var
url
=
'https://big.bgp.ourpow.com/apk/nf/Release-'
+
data
+
'.apk'
;
var
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
url
);
xhr
.
send
();
xhr
.
onreadystatechange
=
function
()
{
if
(
xhr
.
status
==
200
)
{
xhr
.
abort
();
window
.
location
.
href
=
url
;
}
else
if
(
xhr
.
status
==
404
)
{
window
.
location
.
href
=
'https://big.bgp.ourpow.com/apk/nf/Release-ftsB.apk'
;
}
}
}
// window.location.href = url;
// var mAjax = $.ajax({
// url: url,
// statusCode: {
// 404: function () {
// window.location.href = 'https://big.bgp.ourpow.com/apk/nf/Release-ftsB.apk';
// }
// },
// success: function () {
// mAjax.abort();
// window.location.href = url;
// }
// });
});
}
$
(
'.topUp'
).
on
(
'click'
,
function
()
{
...
...
js/buriedPoint.js
View file @
662e81d7
...
...
@@ -13,6 +13,8 @@ function url_get_params() {
var
icid
=
url_get_params
().
mrefer
;
if
(
!
icid
)
{
icid
=
window
.
location
.
href
;
}
else
{
icid
=
icid
.
split
(
'/'
).
pop
();
}
function
viewPage
(
callback
)
{
...
...
@@ -39,8 +41,8 @@ function clickDownload(callback) {
os
:
'WEB'
,
lang
:
2
},
success
:
function
()
{
callback
&&
callback
();
success
:
function
(
res
)
{
callback
&&
callback
(
res
.
AndroidChannel
);
}
})
}
...
...
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