...
|
...
|
@@ -4,6 +4,7 @@ package com.yohoufo.user.controller.passport; |
|
|
import com.yoho.tools.common.beans.ApiResponse;
|
|
|
import com.yohoufo.common.exception.GatewayException;
|
|
|
import com.yohoufo.dal.user.model.UserAuthorizeInfo;
|
|
|
import com.yohoufo.user.helper.HideDataUtil;
|
|
|
import com.yohoufo.user.requestVO.RealNameAuthorizeReqVO;
|
|
|
import com.yohoufo.user.responseVO.AuthorizeResultRespVO;
|
|
|
import com.yohoufo.user.service.IRealNameAuthorizeService;
|
...
|
...
|
@@ -44,9 +45,24 @@ public class RealNameAuthorizeController { |
|
|
if(null!=info){
|
|
|
result.setAuthorizeFlag(true);
|
|
|
result.setAlipayAccount(info.getAlipayAccount());
|
|
|
result.setAlipayMaskAccount(info.getAlipayMaskAccount());
|
|
|
//result.setAlipayMaskAccount(info.getAlipayMaskAccount());
|
|
|
result.setCertName(info.getCertName());
|
|
|
result.setCreateTime(info.getCreateTime());
|
|
|
|
|
|
//把账号部分信息隐藏
|
|
|
if(HideDataUtil.isEmail(info.getAlipayAccount())){
|
|
|
result.setAlipayMaskAccount(HideDataUtil.hideEmail(info.getAlipayAccount()));
|
|
|
}else if(HideDataUtil.isPhone(info.getAlipayAccount())){
|
|
|
result.setAlipayMaskAccount(HideDataUtil.hidePhoneNo(info.getAlipayAccount()));
|
|
|
}else if(info.getAlipayAccount().length()>2){
|
|
|
//即不是手机,又不是邮箱,只显示首末位
|
|
|
result.setAlipayMaskAccount(info.getAlipayAccount().substring(0,1)
|
|
|
+"****"
|
|
|
+info.getAlipayAccount().substring(info.getAlipayAccount().length()-1));
|
|
|
|
|
|
}else{
|
|
|
result.setAlipayMaskAccount(info.getAlipayAccount());
|
|
|
}
|
|
|
}else{
|
|
|
result.setAuthorizeFlag(false);
|
|
|
}
|
...
|
...
|
|