...
|
...
|
@@ -8,6 +8,7 @@ import com.yohobuy.ufo.model.order.common.EntrySellerType; |
|
|
import com.yohobuy.ufo.model.order.resp.SellerResp;
|
|
|
import com.yohoufo.common.caller.UfoServiceCaller;
|
|
|
import com.yohoufo.common.constant.CertPhotoEnum;
|
|
|
import com.yohoufo.common.exception.UfoServiceException;
|
|
|
import com.yohoufo.common.utils.DateUtil;
|
|
|
import com.yohoufo.dal.order.StoredSellerMapper;
|
|
|
import com.yohoufo.dal.order.SuperEntrySellerMapper;
|
...
|
...
|
@@ -140,8 +141,30 @@ public class StoreSellerServiceImpl implements IStoredSellerService { |
|
|
sellerResp.setZhiMaCertWithPhoto(isZhiMaCertWithPhoto);//新的芝麻认证状态(带身份证图片)
|
|
|
//把已认证的信息带回去,给app
|
|
|
if(zhiMaCert!=null){
|
|
|
sellerResp.setCertName(zhiMaCert.getCertName());
|
|
|
sellerResp.setCertNo(zhiMaCert.getCertNo());
|
|
|
//mask处理,姓名只显示最后一个字,身份证号只显示3位******2位
|
|
|
if(StringUtils.isBlank(zhiMaCert.getCertName())||StringUtils.isBlank(zhiMaCert.getCertNo())){
|
|
|
throw new UfoServiceException(400,"芝麻认证信息数据异常");
|
|
|
}
|
|
|
StringBuilder maskCertName=new StringBuilder();
|
|
|
StringBuilder maskCertNo=new StringBuilder();
|
|
|
String name=zhiMaCert.getCertName();
|
|
|
for(int i=0;i<name.length();i++){
|
|
|
if(i==name.length()-1){
|
|
|
maskCertName.append(name.substring(i,i+1));
|
|
|
}else{
|
|
|
maskCertName.append("*");
|
|
|
}
|
|
|
}
|
|
|
String no=zhiMaCert.getCertNo();
|
|
|
for(int i=0;i<no.length();i++){
|
|
|
if(i<3||i>=16){
|
|
|
maskCertNo.append(no.substring(i,i+1));
|
|
|
}else{
|
|
|
maskCertNo.append("*");
|
|
|
}
|
|
|
}
|
|
|
sellerResp.setCertName(maskCertName.toString());
|
|
|
sellerResp.setCertNo(maskCertNo.toString());
|
|
|
}else{
|
|
|
sellerResp.setCertName(StringUtils.EMPTY);
|
|
|
sellerResp.setCertNo(StringUtils.EMPTY);
|
...
|
...
|
|