Showing
1 changed file
with
4 additions
and
0 deletions
@@ -5,6 +5,7 @@ import com.yoho.tools.common.beans.ApiResponse; | @@ -5,6 +5,7 @@ import com.yoho.tools.common.beans.ApiResponse; | ||
5 | import com.yohobuy.ufo.model.user.resp.AuthorizeResultRespVO; | 5 | import com.yohobuy.ufo.model.user.resp.AuthorizeResultRespVO; |
6 | import com.yohoufo.common.constant.CertPhotoEnum; | 6 | import com.yohoufo.common.constant.CertPhotoEnum; |
7 | import com.yohoufo.common.exception.GatewayException; | 7 | import com.yohoufo.common.exception.GatewayException; |
8 | +import com.yohoufo.common.helper.ImageUrlAssist; | ||
8 | import com.yohoufo.common.utils.UserInfoHiddenHelper; | 9 | import com.yohoufo.common.utils.UserInfoHiddenHelper; |
9 | import com.yohoufo.dal.user.model.ZhiMaCert; | 10 | import com.yohoufo.dal.user.model.ZhiMaCert; |
10 | import com.yohoufo.user.common.IDCardUtils; | 11 | import com.yohoufo.user.common.IDCardUtils; |
@@ -268,6 +269,9 @@ public class RealNameAuthorizeController { | @@ -268,6 +269,9 @@ public class RealNameAuthorizeController { | ||
268 | if(StringUtils.isBlank(reqVO.getFrontImageUrl())||StringUtils.isBlank(reqVO.getBackImageUrl())){ | 269 | if(StringUtils.isBlank(reqVO.getFrontImageUrl())||StringUtils.isBlank(reqVO.getBackImageUrl())){ |
269 | throw new GatewayException(400, "身份证正反面图片不能为空!"); | 270 | throw new GatewayException(400, "身份证正反面图片不能为空!"); |
270 | } | 271 | } |
272 | + //重设图片为:http:// | ||
273 | + reqVO.setFrontImageUrl(ImageUrlAssist.getAllProductPicUrl(reqVO.getFrontImageUrl(), "yohocard", "center", "d2hpdGU=")); | ||
274 | + reqVO.setBackImageUrl(ImageUrlAssist.getAllProductPicUrl(reqVO.getBackImageUrl(), "yohocard", "center", "d2hpdGU=")); | ||
271 | 275 | ||
272 | //调用芝麻,得到回调url | 276 | //调用芝麻,得到回调url |
273 | AuthorizeResultRespVO resultVo=realNameAuthorizeService.zhiMaCertWithPhotoInit(reqVO,true); | 277 | AuthorizeResultRespVO resultVo=realNameAuthorizeService.zhiMaCertWithPhotoInit(reqVO,true); |
-
Please register or login to post a comment