Showing
1 changed file
with
5 additions
and
0 deletions
@@ -110,6 +110,11 @@ public class TencentMktServiceImpl implements ITencentMktService { | @@ -110,6 +110,11 @@ public class TencentMktServiceImpl implements ITencentMktService { | ||
110 | 110 | ||
111 | // 调用gateway的发送验证码请求 | 111 | // 调用gateway的发送验证码请求 |
112 | AsyncFuture<ApiResponse> response = service.get("sms.sendCode", gatewayUrl + "?" + param, null, ApiResponse.class, null); | 112 | AsyncFuture<ApiResponse> response = service.get("sms.sendCode", gatewayUrl + "?" + param, null, ApiResponse.class, null); |
113 | + | ||
114 | + if(response.get().getCode() == 404){ | ||
115 | + log.warn("call sms.sendCode. user is exist. area={}, mobile={}", area, mobile); | ||
116 | + return new ApiResponse(502, "仅限新用户领取哦!"); | ||
117 | + } | ||
113 | return response.get(); | 118 | return response.get(); |
114 | } | 119 | } |
115 | 120 |
-
Please register or login to post a comment