Authored by DengXinFei

修复空指针异常

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