Authored by 匡佳华

闲鱼用户实名认证跳过百度刷脸

... ... @@ -13,6 +13,8 @@ public interface IZhiMaCertDao {
int updateValidStatusByPrimaryKey(int id);
int updateIdleFishValidStatus(int id);
int updatePhotoStatusByPrimaryKeyAndValidStatus(@Param("id")int id,@Param("validPhoto")int validPhoto);
int updateBizNoByByPrimaryKey(@Param("id")int id, @Param("bizNo")String bizNo);
... ...
... ... @@ -100,6 +100,12 @@
where id = #{id}
</update>
<update id="updateIdleFishValidStatus">
update zhima_cert
set valid_status = 1, is_idlefish = 1
where id = #{id}
</update>
<update id="updatePhotoToValidByPK">
update zhima_cert
set image_url = #{imageUrl} , valid_photo = #{validPhoto}
... ...
... ... @@ -43,5 +43,7 @@ public class RealNameAuthorizeReqVO extends BaseBO {
//版本
private String app_version;
private String client_type;
}
... ...
... ... @@ -34,6 +34,14 @@ public class AlipayServiceImpl implements IAlipayService {
@Override
public void beginAlipayCert(RealNameAuthorizeReqVO reqVO, ZhiMaCert zhiMaCert, AuthorizeResultRespVO respBO){
logger.info("BeginAlipayCert: Begin alipay certification. reqVO is {}, zhiMaCert is {}", reqVO, zhiMaCert);
// 闲鱼用户不进行百度刷脸认证,直接认证成功
if("h5".equals(reqVO.getClient_type())){
logger.info("BeginAlipayCert: client_type is h5, reqVO is {}, zhiMaCert is {}", reqVO, zhiMaCert);
zhiMaCertDao.updateIdleFishValidStatus(zhiMaCert.getId());
respBO.setCallZhiMa("1");
respBO.setZhiMaCertId(zhiMaCert.getId());
return;
}
//(1)支付宝刷脸认证初始化
String certifyId = AlipayCertHelper.alipayCertifyInit(reqVO.getCertName(), reqVO.getCertNo());
logger.info("BeginAlipayCert: alipay init result. uid is {}, certNO is {}, certName is {}, certifyId is {}", reqVO.getUid(), reqVO.getCertNo(), reqVO.getCertName(), certifyId);
... ...
... ... @@ -115,7 +115,7 @@ public class CertificationServiceImpl implements ICertificationService {
logger.info("BeginCertificate: call alipay certify end. reqVO is {}, zhiMaCert is {}, respBO is {}", reqVO, zhiMaCert, respBO);
}
//(9)删除实名认证信息
//(9)删除实名认证信息缓存
try {
cacheService.delZhiMaCert(reqVO.getUid());
}catch(Exception e){
... ...