...
|
...
|
@@ -269,11 +269,26 @@ public class ClickUnionRest { |
|
|
url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
|
|
|
}
|
|
|
}
|
|
|
//365jia news client/cn.ahurls.news/3.5.0_300500.209/ios(7.1|0|iphone)/59c2ed8b88175124c539e0c7a96a18d4eedb3d6c(none|none)/640x1136@2
|
|
|
else if(agent.contains("/ios")){
|
|
|
int first = agent.indexOf("/ios(") + 5;
|
|
|
String version1 = agent.substring(first);
|
|
|
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";
|
|
|
}
|
|
|
else if (agent.contains("ios")){
|
|
|
//user-agent=momochat/7.5.6 ios/664 (iphone 6; ios 10.2; zh_cn; iphone7,2; s1)
|
|
|
int first = agent.indexOf(" ios ")+4;
|
|
|
String version1 = agent.substring(first);
|
|
|
String version = version1.substring(version1.indexOf(" ")+1, version1.indexOf(";"));
|
|
|
//user-agent=momochat/7.5.6 ios/664 (iphone 6; ios 10.2; zh_cn; iphone7,2; s1)
|
|
|
int lastIndex = version1.indexOf(";");
|
|
|
if (lastIndex == -1) {
|
|
|
//jxsg_ios-1.2.5/0.0.2 (iphone7,2; ios 10.2.1)
|
|
|
lastIndex = version1.indexOf(")");
|
|
|
}
|
|
|
String version = version1.substring(version1.indexOf(" ") + 1, lastIndex);
|
|
|
bo.setTd("ios_" + version.replaceAll("_", "."));
|
|
|
bo.setClient_type("ios");
|
|
|
bo.setAppid("490655927");
|
...
|
...
|
|