Authored by DengXinFei

iOS修改appid

... ... @@ -163,13 +163,13 @@ public class ClickUnionRest {
log.info("addUnion4Special version={}", version);
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
bo.setAppid("1048984814");
log.info("addUnion4Special request={}", bo);
unionService.clickUnion(bo);
log.info("addUnion4Special with result is {}, and request is {}", response, bo);
clickUnion.info("addUnion4Special request is {}", bo);
response.setStatus(301);
response.sendRedirect("https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8");
response.sendRedirect("https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8");
} catch (IOException e) {
log.error("addUnion4Special error with request={}", bo, e);
}
... ... @@ -215,8 +215,8 @@ public class ClickUnionRest {
String version = agent.substring(agent.indexOf(" os ") + 4, agent.indexOf(" like"));
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}
//youku;5.4;ios;10.2;iphone6,1 ---这种情况比较多
else if(agent.contains("youku")){
... ... @@ -227,8 +227,8 @@ public class ClickUnionRest {
version = version1.substring(version1.indexOf(" ")+1, version1.indexOf(";"));
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
} //youku;5.4.1;iphone os;8.4.1;iphone6,2
else if(agent.contains("os")){
int first = agent.indexOf("os;") + 3;
... ... @@ -236,8 +236,8 @@ public class ClickUnionRest {
version = version1.substring(version1.indexOf(" ") + 1, version1.indexOf(";"));
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}
}
//momochat/7.5.6 ios/664 (iphone 6; ios 10.2; zh_cn; iphone7,2; s1)
... ... @@ -249,8 +249,8 @@ public class ClickUnionRest {
version = version1.substring(version1.indexOf(" ")+1, version1.indexOf(";"));
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}
else if(agent.contains("ios")){
int first = agent.indexOf(" ios ")+4;
... ... @@ -258,8 +258,8 @@ public class ClickUnionRest {
version = version1.substring(version1.indexOf(" ")+1, version1.indexOf(";"));
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
} //momochat/7.5.6 ios/664 (iphone 6s; iphone os 9.2; zh_cn; iphone8,1; s1)
else if(agent.contains("os")){
int first = agent.indexOf(" os ")+3;
... ... @@ -267,8 +267,8 @@ public class ClickUnionRest {
version = version1.substring(version1.indexOf(" ")+1, version1.indexOf(";"));
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}
}
else if(agent.contains("ios/")){
... ... @@ -281,14 +281,14 @@ public class ClickUnionRest {
version = version1.substring(version1.lastIndexOf("/") + 1, version1.length());
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}else{ //ios/6.6 com.jugg.doctor ipad5,3/8.3/768x1024/2.0 /1---这个应该就是ios_6.6
version = agent.substring(agent.indexOf("ios/")+4,agent.indexOf(" "));
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}
}
//365jia news client/cn.ahurls.news/3.5.0_300500.209/ios(7.1|0|iphone)/59c2ed8b88175124c539e0c7a96a18d4eedb3d6c(none|none)/640x1136@2
... ... @@ -298,8 +298,8 @@ public class ClickUnionRest {
String version = version1.substring(0,version1.indexOf("|"));
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}
else if (agent.contains("ios")){
String version = "";
... ... @@ -310,8 +310,8 @@ public class ClickUnionRest {
version = agent.substring(version1.lastIndexOf(";")+1,lastIndex);
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}else if(agent.contains("jxsg")) { //jxsg_ios-1.2.5/0.0.2 (iphone7,2; ios 10.2.1)
int first = agent.lastIndexOf("ios ") + 4;
String version1 = agent.substring(first);
... ... @@ -319,8 +319,8 @@ public class ClickUnionRest {
version = version1.substring(version1.indexOf(" ") + 1, lastIndex);
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}else{
int first = agent.lastIndexOf("ios ") + 4;
String version1 = agent.substring(first);
... ... @@ -328,8 +328,8 @@ public class ClickUnionRest {
version = version1.substring(0, lastIndex);
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
bo.setAppid("1048984814");
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}
}
... ... @@ -374,7 +374,7 @@ public class ClickUnionRest {
//response.setHeader("Location",url);
//如果不需要直接下载, 配置参数downloadDirect=N, 跳转应用宝下载
if(null != downloadDirect && "ios".equals(downloadDirect.trim())){
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8";
}else if(null != downloadDirect && "android".equals(downloadDirect.trim())){
url = "http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445";
}
... ... @@ -414,7 +414,7 @@ public class ClickUnionRest {
String version = agent.substring(agent.indexOf(" OS ") + 4, agent.indexOf(" like"));
bo.setTd("ios_" + version.replaceAll("_", "."));
bo.setClient_type("ios");
bo.setAppid("490655927");
bo.setAppid("1048984814");
}else {
int index = agent.indexOf("android");
if (index > 0) {
... ...
... ... @@ -221,7 +221,7 @@
//如果setTimeout 回调超过2500ms,则弹出下载
if ((+new Date()) - openTime > 500) {
if (isiOS) {
url = '//itunes.apple.com/us/app/id490655927?ls=1&mt=8';
url = 'itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8';
} else {
url = '//yoho-apps.qiniudn.com/YohoBuy_YOHO.apk';
}
... ... @@ -259,7 +259,7 @@
url = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445';
}else{
if (isiOS) {
url = '//itunes.apple.com/us/app/id490655927?ls=1&mt=8';
url = '//itunes.apple.com/cn/app/yoho!-you-huo/id1048984814?mt=8';
} else {
if(isAndroidQQ){ //安卓qq处理方式同微信,也进入应用宝下载
url = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445';
... ...
... ... @@ -56,7 +56,7 @@
version = (verinfo+'').replace(/[^0-9|_.]/ig,'').replace(/_/ig, '.');
type = 'ios';
appid = '490655927';
appid = '1048984814';
td = window.screen.width + '_' + window.screen.height + '_' + type + '_' + version;
} else if (agent.indexOf('android') > -1 || agent.indexOf('linux') > -1) {
... ...