Authored by qinchao

修改bug

... ... @@ -16,6 +16,7 @@ public class UserAuthorizeInfo {
private Integer validStatus;
//支付宝账号、姓名
private String alipayMaskAccount;
private String alipayAccount;
private String certName;
... ...
... ... @@ -63,13 +63,13 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService {
if(authorizeInfo!=null){
//把账号部分信息隐藏
if(HideDataUtil.isEmail(authorizeInfo.getAlipayAccount())){
authorizeInfo.setAlipayAccount(HideDataUtil.hideEmail(authorizeInfo.getAlipayAccount()));
authorizeInfo.setAlipayMaskAccount(HideDataUtil.hideEmail(authorizeInfo.getAlipayAccount()));
}else if(HideDataUtil.isPhone(authorizeInfo.getAlipayAccount())){
authorizeInfo.setAlipayAccount(HideDataUtil.hidePhoneNo(authorizeInfo.getAlipayAccount()));
authorizeInfo.setAlipayMaskAccount(HideDataUtil.hidePhoneNo(authorizeInfo.getAlipayAccount()));
}else{
//即不是手机,又不是邮箱,只显示首末位
if(authorizeInfo.getAlipayAccount().length()>2){
authorizeInfo.setAlipayAccount(authorizeInfo.getAlipayAccount().substring(0,1)
authorizeInfo.setAlipayMaskAccount(authorizeInfo.getAlipayAccount().substring(0,1)
+"****"
+authorizeInfo.getAlipayAccount().substring(authorizeInfo.getAlipayAccount().length()-1));
}
... ...