Showing
1 changed file
with
1 additions
and
1 deletions
@@ -178,7 +178,7 @@ public class ClickUnionRest { | @@ -178,7 +178,7 @@ public class ClickUnionRest { | ||
178 | bo.setAppid("490655927"); | 178 | bo.setAppid("490655927"); |
179 | url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8"; | 179 | url = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8"; |
180 | } else { | 180 | } else { |
181 | - int index = agent.indexOf("android"); | 181 | + int index = agent.lastIndexOf("android"); |
182 | if (index > 0) { | 182 | if (index > 0) { |
183 | String version = agent.substring(index + 8, index + 11); | 183 | String version = agent.substring(index + 8, index + 11); |
184 | bo.setTd("android_" + version.replaceAll("_", "")); | 184 | bo.setTd("android_" + version.replaceAll("_", "")); |
-
Please register or login to post a comment