Authored by DengXinFei

修复空指针异常

@@ -78,7 +78,7 @@ public class ActivateUnionRest { @@ -78,7 +78,7 @@ public class ActivateUnionRest {
78 vo.setClient_type(ClientTypeEnum.IOS.getName()); 78 vo.setClient_type(ClientTypeEnum.IOS.getName());
79 } 79 }
80 String agent = request.getHeader("user-agent"); 80 String agent = request.getHeader("user-agent");
81 - if(StringUtils.isEmpty(agent)){ 81 + if(StringUtils.isEmpty(agent) && StringUtils.isEmpty(vo.getTd())){
82 log.warn("activateUnion failed. user-agent is null. agent is {}, request vo is {}", agent, vo); 82 log.warn("activateUnion failed. user-agent is null. agent is {}, request vo is {}", agent, vo);
83 return new UnionResponse(200,"success","user-agent is null"); 83 return new UnionResponse(200,"success","user-agent is null");
84 } 84 }