Showing
1 changed file
with
8 additions
and
0 deletions
@@ -51,14 +51,22 @@ public class GDTServiceImpl implements MainUnionService { | @@ -51,14 +51,22 @@ public class GDTServiceImpl implements MainUnionService { | ||
51 | 51 | ||
52 | private UnionResponseBO check(ActivateUnionRequestBO request) { | 52 | private UnionResponseBO check(ActivateUnionRequestBO request) { |
53 | log.debug("activateUnionCheck with param is {}", request); | 53 | log.debug("activateUnionCheck with param is {}", request); |
54 | + String android_appID = "100898104"; | ||
54 | if (StringUtils.isEmpty(request.getAppid())) { | 55 | if (StringUtils.isEmpty(request.getAppid())) { |
55 | log.warn("activateUnionCheck error because appid is null with param is {}", request); | 56 | log.warn("activateUnionCheck error because appid is null with param is {}", request); |
56 | return new UnionResponseBO(false, "appid is null"); | 57 | return new UnionResponseBO(false, "appid is null"); |
57 | } | 58 | } |
59 | + | ||
58 | if (StringUtils.isEmpty(request.getClient_type()) || (!request.getClient_type().equalsIgnoreCase(ClientTypeEnum.ANDROID.getName()) && !request.getClient_type().equalsIgnoreCase(ClientTypeEnum.IPHONE.getName()))) { | 60 | if (StringUtils.isEmpty(request.getClient_type()) || (!request.getClient_type().equalsIgnoreCase(ClientTypeEnum.ANDROID.getName()) && !request.getClient_type().equalsIgnoreCase(ClientTypeEnum.IPHONE.getName()))) { |
59 | log.warn("activateUnionCheck error with param is {}", request); | 61 | log.warn("activateUnionCheck error with param is {}", request); |
60 | return new UnionResponseBO(false, "app_type is error"); | 62 | return new UnionResponseBO(false, "app_type is error"); |
61 | } | 63 | } |
64 | + //安卓如果appid不是100898104,则认为不是广点通推广的 | ||
65 | + if(request.getClient_type().equalsIgnoreCase(ClientTypeEnum.ANDROID.getName())&& | ||
66 | + (android_appID!=(request.getAppid()))||android_appID.equals(request.getAppid())){ | ||
67 | + log.warn("activateUnionCheck error because appid is error with param is {}", request.getAppid()); | ||
68 | + return new UnionResponseBO(false, "appid is error"); | ||
69 | + } | ||
62 | if (request.getClient_type().equalsIgnoreCase(ClientTypeEnum.ANDROID.getName()) && StringUtils.isEmpty(request.getImei())) { | 70 | if (request.getClient_type().equalsIgnoreCase(ClientTypeEnum.ANDROID.getName()) && StringUtils.isEmpty(request.getImei())) { |
63 | log.warn("activateUnionCheck error because imei is null with client_type is andriod with param is {}", request); | 71 | log.warn("activateUnionCheck error because imei is null with client_type is andriod with param is {}", request); |
64 | return new UnionResponseBO(false, "imei is error"); | 72 | return new UnionResponseBO(false, "imei is error"); |
-
Please register or login to post a comment