tongfeng 2 лет назад
Родитель
Сommit
ce426dac84

+ 1 - 3
eladmin-system/src/main/java/me/zhengjie/domain/notary/impl/NotaryDomainImpl.java

@@ -96,7 +96,6 @@ public class NotaryDomainImpl implements NotaryDomain {
             return ResultCode.PARAM_IS_INVALID;
         }
         //做过安心签的用户 直接人脸核身 保存图片
-
         ThirdPartyInterfaceEntity thirdPartyInterfaceEntity = JuheServiceUtil.URLPost(idCard, nickName, base64);
         File base = null;
         try {
@@ -109,7 +108,6 @@ public class NotaryDomainImpl implements NotaryDomain {
             log.info("base64转图片异常");
             return ResultCode.FACEAUTH_FAIL;
         }
-
         FileInfoEntity fileInfo = saveCompareImage(base);
         fileInfoMapper.insert(fileInfo);
         thirdPartyInterfaceEntity.setFileId(fileInfo.getId()+"");
@@ -197,7 +195,7 @@ public class NotaryDomainImpl implements NotaryDomain {
                 ThirdPartyInterfaceEntity thirdPartyInterfaceEntity = JuheServiceUtil.URLPost(idCard, nickName, base64);
                 thirdPartyInterfaceEntity.setFileId(fileInfo.getId()+"");
                 thirdPartyInterfaceEntity.setBusinessNo(compareImageDomain.getBusinessNo());
-                if (StringUtils.isNotBlank(thirdPartyInterfaceEntity.getMessage())){
+                if (thirdPartyInterfaceEntity.getResult()==1){
                     //上传图片到minio FileInfo
                     SysUserEntity bank = new SysUserEntity();
                     bank.setUserId(sysUserEntity.getUserId());