Showing
1 changed file
with
13 additions
and
3 deletions
@@ -36,9 +36,19 @@ | @@ -36,9 +36,19 @@ | ||
36 | return vars; | 36 | return vars; |
37 | } | 37 | } |
38 | 38 | ||
39 | + queryString = getQueryString(); | ||
39 | downUrl = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445'; | 40 | downUrl = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445'; |
40 | //downUrl = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8"; | 41 | //downUrl = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8"; |
41 | - | 42 | + var appkey = queryString.appkey; |
43 | + | ||
44 | + if (appkey == "yoho") { | ||
45 | + //yohonow | ||
46 | + downUrl = "http://a.app.qq.com/o/simple.jsp?pkgname=cn.yoho.magazine#opened"; | ||
47 | + } else if (appkey == "mars") { | ||
48 | + //mars | ||
49 | + downUrl = "https://itunes.apple.com/cn/app/mars-xin-xian-hao-qu-chu-yu/id1056487123?l=en&mt=8"; | ||
50 | + } | ||
51 | + | ||
42 | if (agent.indexOf("like mac os x") > 0) { | 52 | if (agent.indexOf("like mac os x") > 0) { |
43 | var regStr_saf = /os [\d._]*/gi ; | 53 | var regStr_saf = /os [\d._]*/gi ; |
44 | var verinfo = agent.match(regStr_saf) ; | 54 | var verinfo = agent.match(regStr_saf) ; |
@@ -47,7 +57,7 @@ | @@ -47,7 +57,7 @@ | ||
47 | type = 'ios'; | 57 | type = 'ios'; |
48 | appid = '490655927'; | 58 | appid = '490655927'; |
49 | td = window.screen.width + '_' + window.screen.height + '_' + type + '_' + version; | 59 | td = window.screen.width + '_' + window.screen.height + '_' + type + '_' + version; |
50 | - | 60 | + |
51 | } else if (agent.indexOf('android') > -1 || agent.indexOf('linux') > -1) { | 61 | } else if (agent.indexOf('android') > -1 || agent.indexOf('linux') > -1) { |
52 | var indextd = agent.indexOf('_td'); | 62 | var indextd = agent.indexOf('_td'); |
53 | var index = agent.indexOf(' build'); | 63 | var index = agent.indexOf(' build'); |
@@ -79,7 +89,7 @@ | @@ -79,7 +89,7 @@ | ||
79 | //downUrl = 'http://cdn.yoho.cn/app-downfiles/yohoBuy_YOHO_2953.apk'; | 89 | //downUrl = 'http://cdn.yoho.cn/app-downfiles/yohoBuy_YOHO_2953.apk'; |
80 | } | 90 | } |
81 | 91 | ||
82 | - queryString = getQueryString(); | 92 | + |
83 | 93 | ||
84 | $.ajax({ | 94 | $.ajax({ |
85 | method: 'POST', | 95 | method: 'POST', |
-
Please register or login to post a comment