Showing
2 changed files
with
6 additions
and
0 deletions
@@ -77,6 +77,11 @@ public class UnionServiceImpl implements IUnionService { | @@ -77,6 +77,11 @@ public class UnionServiceImpl implements IUnionService { | ||
77 | log.warn("clickUnion error because union_type is empty with param is {}", request); | 77 | log.warn("clickUnion error because union_type is empty with param is {}", request); |
78 | return new UnionResponse(201, "union_type is empty"); | 78 | return new UnionResponse(201, "union_type is empty"); |
79 | } | 79 | } |
80 | + UnionTypeModel m = UnionConstant.unionTypeMap.get(Integer.parseInt(request.getUnion_type())); | ||
81 | + if (m == null) { | ||
82 | + log.warn("clickUnion error because union_type is error with param is {}", request); | ||
83 | + return new UnionResponse(201, "union_type is error"); | ||
84 | + } | ||
80 | if (StringUtils.isEmpty(request.getCallbackurl())) { | 85 | if (StringUtils.isEmpty(request.getCallbackurl())) { |
81 | log.warn("clickUnion error because callbackurl is empty with param is {}", request); | 86 | log.warn("clickUnion error because callbackurl is empty with param is {}", request); |
82 | return new UnionResponse(201, "callbackurl is empty"); | 87 | return new UnionResponse(201, "callbackurl is empty"); |
-
Please register or login to post a comment