Commit bb49141c by agan

修改下载

parent 4663e771
Showing with 8 additions and 16 deletions
......@@ -78,17 +78,13 @@
if (/iphone|ipad|ipod/.test(ua)) {
clickDownload(function (data) {
var mData = '';
if (localStorage.from == 'ftsgw') {
mData = 'iosftsB';
} else if (localStorage.from == 'vip') {
mData = 'iosftsB';
} else {
if (!data) {
mData = 'iosftsB';
} else {
mData = data.iOSChannel;
}
}
copyText(mData);
window.location.href = 'https://app.footseen.com/download.html';
......@@ -98,19 +94,14 @@
} else if (/android/.test(ua)) {
clickDownload(function (data) {
var mData = '';
if (localStorage.from == 'ftsgw') {
mData = 'ftsgw';
} else if (localStorage.from == 'vip') {
mData = 'ftsBVIP';
} else {
if (!data) {
mData = 'ftsB';
if(hrf == 'https://footseen.com/'){
mData = 'ftsgw'
}
} else {
mData = data.AndroidChannel;
}
}
copyText(mData);
var url = 'https://big.bgp.ourpow.com/apk/nf/Release-' + mData + '.apk';
var xhr = new XMLHttpRequest();
......
......@@ -94,10 +94,11 @@
} else if (/android/.test(ua)) {
clickDownload(function (data) {
var mData = '';
if (!data) {
mData = 'ftsB';
if (hrf == 'https://footseen.com/') {
mData = 'ftsgw'
}
} else {
mData = data.AndroidChannel;
}
......
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