...
|
...
|
@@ -84,8 +84,8 @@ public class ActivateUnionRest { |
|
|
}
|
|
|
String clientType = vo.getClient_type();
|
|
|
log.info("addMonitor user-agent={}", agent);
|
|
|
String[] arr = agent.split(";");
|
|
|
if (StringUtils.isEmpty(vo.getTd()) && StringUtils.isNotEmpty(agent) && ClientTypeEnum.IOS.getName().equalsIgnoreCase(clientType)) {
|
|
|
String[] arr = (null == agent)? null : agent.split(";");
|
|
|
if (StringUtils.isEmpty(vo.getTd()) && StringUtils.isNotEmpty(agent) && ClientTypeEnum.IOS.getName().equalsIgnoreCase(clientType) && (null != arr)) {
|
|
|
for (String str : arr) {
|
|
|
if (str.indexOf("OS/iOS") >= 0) {
|
|
|
String version = str.substring(str.indexOf("OS/iOS") + 6);
|
...
|
...
|
|