...
|
...
|
@@ -13,6 +13,7 @@ import com.yoho.error.exception.ServiceException; |
|
|
import com.yoho.tools.common.beans.ApiResponse;
|
|
|
import com.yohobuy.ufo.model.user.resp.AuthorizeResultRespVO;
|
|
|
import com.yohoufo.common.exception.GatewayException;
|
|
|
import com.yohoufo.common.exception.UfoServiceException;
|
|
|
import com.yohoufo.common.utils.HttpClient;
|
|
|
import com.yohoufo.common.utils.UserInfoHiddenHelper;
|
|
|
import com.yohoufo.dal.user.IUserAuthorizeInfoDao;
|
...
|
...
|
@@ -30,6 +31,7 @@ import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.ZoneOffset;
|
|
|
|
...
|
...
|
@@ -311,11 +313,11 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { |
|
|
logger.info("real name zhiMaCertInit reqVO {}", reqVO);
|
|
|
//检查是否已经认证,如果已经认证,报错
|
|
|
if (isValidZhiMaCert(reqVO.getUid())) {
|
|
|
throw new ServiceException(400, "已实名认证!");
|
|
|
throw new UfoServiceException(400, "已实名认证!");
|
|
|
}
|
|
|
//检查身份证号认证信息是否已经存在,存在则不允许再次使用
|
|
|
if (null != zhiMaCertDao.selectValidByCertNo(reqVO.getCertNo())) {
|
|
|
throw new ServiceException(400, "身份证号已被占用!");
|
|
|
throw new UfoServiceException(400, "身份证号已被占用!");
|
|
|
}
|
|
|
|
|
|
//调用芝麻接口,返回biz_no
|
...
|
...
|
@@ -373,7 +375,7 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService { |
|
|
ZhiMaCert zhiMaCert=zhiMaCertDao.selectByBizNo(reqVO.getZhiMaBizNo());
|
|
|
if(zhiMaCert==null){
|
|
|
logger.error("zhiMaCertResultQuery get cert is null ",reqVO.getZhiMaBizNo());
|
|
|
throw new ServiceException(400, "错误:未找到芝麻认证信息!");
|
|
|
throw new UfoServiceException(400, "错误:未找到芝麻认证信息!");
|
|
|
}
|
|
|
|
|
|
logger.info("zhiMaCertResultQuery get zhiMaCert from db is {} ",zhiMaCert);
|
...
|
...
|
|