| | |
| | | |
| | | 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(); |
| | | 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("人脸下载出错"); |
| | | } |
| | | log.error("+++++++++++++++++++++++++ArtemisConfig.host***********************************"+ ArtemisConfig.host); |
| | | log.error("+++++++++++++++++++++++++ArtemisConfig.key********************************"+ArtemisConfig.appKey); |
| | | return null; |
| | | } |
| | | /** |
| | | * 获取访客记录中的图片 |