jiangping
2024-10-10 6af94c9f2deb77e97ccfca2c83c3c28dac534ae0
server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
@@ -234,26 +234,15 @@
      Map<String, String> path = getPath(HKConstants.InterfacePath.facePicture[0]);
      //参数根据接口实际情况设置
      log.error("=========================ArtemisConfig.host***********************************"+ ArtemisConfig.host);
      log.error("=========================ArtemisConfig.key********************************"+ArtemisConfig.appKey);
      try {
         log.error("-------------------------ArtemisConfig.host***********************************"+ ArtemisConfig.host);
         log.error("-------------------------ArtemisConfig.key********************************"+ArtemisConfig.appKey);
         HttpResponse resp = ArtemisHttpUtil.doPostStringImgArtemis( path, body, null, null,"application/json",null);
         if (200==resp.getStatusLine().getStatusCode()) {
            HttpEntity entity = resp.getEntity();
            InputStream in = entity.getContent();
            return  in;
         }else{
            log.error("人脸下载出错");
            throw  new Exception("人脸下载出错");
         }
      }catch (Exception e){
         e.printStackTrace();
      HttpResponse resp = ArtemisHttpUtil.doPostStringImgArtemis( path, body, null, null,"application/json",null);
      if (200==resp.getStatusLine().getStatusCode()) {
         HttpEntity entity = resp.getEntity();
         InputStream in = entity.getContent();
         return  in;
      }else{
         log.error("人脸下载出错");
         throw  new Exception("人脸下载出错");
      }
      log.error("+++++++++++++++++++++++++ArtemisConfig.host***********************************"+ ArtemisConfig.host);
      log.error("+++++++++++++++++++++++++ArtemisConfig.key********************************"+ArtemisConfig.appKey);
      return  null;
   }
   /**
    * 获取访客记录中的图片