...
|
...
|
@@ -51,14 +51,22 @@ public class GDTServiceImpl implements MainUnionService { |
|
|
|
|
|
private UnionResponseBO check(ActivateUnionRequestBO request) {
|
|
|
log.debug("activateUnionCheck with param is {}", request);
|
|
|
String android_appID = "100898104";
|
|
|
if (StringUtils.isEmpty(request.getAppid())) {
|
|
|
log.warn("activateUnionCheck error because appid is null with param is {}", request);
|
|
|
return new UnionResponseBO(false, "appid is null");
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isEmpty(request.getClient_type()) || (!request.getClient_type().equalsIgnoreCase(ClientTypeEnum.ANDROID.getName()) && !request.getClient_type().equalsIgnoreCase(ClientTypeEnum.IPHONE.getName()))) {
|
|
|
log.warn("activateUnionCheck error with param is {}", request);
|
|
|
return new UnionResponseBO(false, "app_type is error");
|
|
|
}
|
|
|
//安卓如果appid不是100898104,则认为不是广点通推广的
|
|
|
if(request.getClient_type().equalsIgnoreCase(ClientTypeEnum.ANDROID.getName())&&
|
|
|
(android_appID!=(request.getAppid()))||android_appID.equals(request.getAppid())){
|
|
|
log.warn("activateUnionCheck error because appid is error with param is {}", request.getAppid());
|
|
|
return new UnionResponseBO(false, "appid is error");
|
|
|
}
|
|
|
if (request.getClient_type().equalsIgnoreCase(ClientTypeEnum.ANDROID.getName()) && StringUtils.isEmpty(request.getImei())) {
|
|
|
log.warn("activateUnionCheck error because imei is null with client_type is andriod with param is {}", request);
|
|
|
return new UnionResponseBO(false, "imei is error");
|
...
|
...
|
|