Showing
1 changed file
with
10 additions
and
1 deletions
@@ -230,7 +230,16 @@ public class ClickUnionRest { | @@ -230,7 +230,16 @@ public class ClickUnionRest { | ||
230 | //momochat/7.5.6 ios/664 (iphone 6; ios 10.2; zh_cn; iphone7,2; s1) | 230 | //momochat/7.5.6 ios/664 (iphone 6; ios 10.2; zh_cn; iphone7,2; s1) |
231 | else if(agent.contains("momochat")){ | 231 | else if(agent.contains("momochat")){ |
232 | String version = ""; | 232 | String version = ""; |
233 | - if(agent.contains("ios")){ | 233 | + if(agent.contains("ios")&&agent.contains("os")){ |
234 | + int first = agent.indexOf(" os ")+3; | ||
235 | + String version1 = agent.substring(first); | ||
236 | + version = version1.substring(version1.indexOf(" ")+1, version1.indexOf(";")); | ||
237 | + bo.setTd("ios_" + version.replaceAll("_", ".")); | ||
238 | + bo.setClient_type("ios"); | ||
239 | + bo.setAppid("490655927"); | ||
240 | + url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8"; | ||
241 | + } | ||
242 | + else if(agent.contains("ios")){ | ||
234 | int first = agent.indexOf(" ios ")+4; | 243 | int first = agent.indexOf(" ios ")+4; |
235 | String version1 = agent.substring(first); | 244 | String version1 = agent.substring(first); |
236 | version = version1.substring(version1.indexOf(" ")+1, version1.indexOf(";")); | 245 | version = version1.substring(version1.indexOf(" ")+1, version1.indexOf(";")); |
-
Please register or login to post a comment