Showing
1 changed file
with
4 additions
and
0 deletions
@@ -271,6 +271,10 @@ public class RealNameAuthorizeController { | @@ -271,6 +271,10 @@ public class RealNameAuthorizeController { | ||
271 | if(StringUtils.isBlank(reqVO.getFrontImageUrl())||StringUtils.isBlank(reqVO.getBackImageUrl())){ | 271 | if(StringUtils.isBlank(reqVO.getFrontImageUrl())||StringUtils.isBlank(reqVO.getBackImageUrl())){ |
272 | throw new GatewayException(400, "身份证正反面图片不能为空!"); | 272 | throw new GatewayException(400, "身份证正反面图片不能为空!"); |
273 | } | 273 | } |
274 | + | ||
275 | + if("null".equalsIgnoreCase(reqVO.getFrontImageUrl().trim()) ||"null".equalsIgnoreCase(reqVO.getBackImageUrl().trim())){ | ||
276 | + throw new GatewayException(400, "身份证照片不能为空!"); | ||
277 | + } | ||
274 | //重设图片为:http://yhgidcard.static.yhbimg.com/yohocard | 278 | //重设图片为:http://yhgidcard.static.yhbimg.com/yohocard |
275 | 279 | ||
276 | reqVO.setFrontImageUrl(yohoCardUrlPre+reqVO.getFrontImageUrl()); | 280 | reqVO.setFrontImageUrl(yohoCardUrlPre+reqVO.getFrontImageUrl()); |
-
Please register or login to post a comment