Explorar el Código

add:普通模式调用依图接口人脸布控

lileilei hace 2 años
padre
commit
3c05a45318

+ 5 - 2
src/main/java/com/rshy/project/hy/manager/impl/RshyJkManagerImpl.java

@@ -91,8 +91,11 @@ public class RshyJkManagerImpl implements RshyJkManager {
             {
                 add(() -> resultDTO.setPctymDataDTOS(itfwServer.getPctym(rshyParam.getSfzh(), rshyParam.getTimeout())));
                 add(() -> resultDTO.setPcthsResultDTO(itfwServer.getPcths(rshyParam.getSfzh(), rshyParam.getTimeout())));
-                add(() -> resultDTO.setPersonIdentifyDTO(viidServer.personIdentify(rshyParam.getPhoto(), rshyParam.getTimeout())));
-                add(() -> quickRshyVo.set(getQuickRyhyInfo(new RshyQuickParam().setPhoto(rshyParam.getPhoto()).setTimeout(rshyParam.getTimeout()))));
+
+                if (StrUtil.isNotBlank(rshyParam.getPhoto())) {
+                    add(() -> resultDTO.setPersonIdentifyDTO(viidServer.personIdentify(rshyParam.getPhoto(), rshyParam.getTimeout())));
+                    add(() -> quickRshyVo.set(getQuickRyhyInfo(new RshyQuickParam().setPhoto(rshyParam.getPhoto()).setTimeout(rshyParam.getTimeout()))));
+                }
             }
         };