Commit 344c9e6c by agan

修改埋点

parent 8249e634
Showing with 10 additions and 3 deletions
...@@ -374,8 +374,14 @@ ...@@ -374,8 +374,14 @@
function toDown() { function toDown() {
clickDownload(function (data) { clickDownload(function (data) {
copyText(data); var mData = '';
var url = 'https://big.bgp.ourpow.com/apk/nf/Release-' + data + '.apk'; if(!data){
mData = andoridData;
}else{
mData = data.AndroidChannel
}
copyText(mData);
var url = 'https://big.bgp.ourpow.com/apk/nf/Release-' + mData + '.apk';
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('GET', url); xhr.open('GET', url);
xhr.send(); xhr.send();
......
...@@ -42,7 +42,8 @@ function clickDownload(callback) { ...@@ -42,7 +42,8 @@ function clickDownload(callback) {
lang: 2 lang: 2
}, },
success: function (res) { success: function (res) {
callback && callback(res.AndroidChannel); var mResult = JSON.parse(res);
callback && callback(mResult.result);
} }
}) })
} }
......
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