From 6e3ab2612c424248786eb37d718df536d6710bed Mon Sep 17 00:00:00 2001 From: coco1986509808 <1986509808@qq.com> Date: Mon, 27 Mar 2023 21:37:32 +0800 Subject: [PATCH] =?UTF-8?q?minio=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BB=A5=E5=8F=8A=E4=BA=BA=E8=84=B8=E6=A3=80=E6=B5=8B=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/dkha/server/services/impl/CompareServiceImpl.java | 5 +++-- face-server/src/main/resources/application-dev.yml | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/face-server/src/main/java/com/dkha/server/services/impl/CompareServiceImpl.java b/face-server/src/main/java/com/dkha/server/services/impl/CompareServiceImpl.java index 7201fc1..483b077 100644 --- a/face-server/src/main/java/com/dkha/server/services/impl/CompareServiceImpl.java +++ b/face-server/src/main/java/com/dkha/server/services/impl/CompareServiceImpl.java @@ -159,10 +159,11 @@ public class CompareServiceImpl implements ICompareService { */ private void validateSingleFaceImage(String image) { //人脸检测url - String faceSearchUrl = apiRequestPrefix + ApiUrlEnum.FACE_SEARCH.getUrl(); + //String faceSearchUrl = apiRequestPrefix + ApiUrlEnum.FACE_SEARCH.getUrl(); + String faceSearchUrltest = 192.168.3.132:5000/message/mask; //组装api请求数据 ReturnVO returnVO; - returnVO = (ReturnVO) httpUtil.post(faceSearchUrl + "?url=" + image, null, ReturnVO.class); + returnVO = (ReturnVO) httpUtil.post(faceSearchUrltest + "?url=" + image, null, ReturnVO.class); if (returnVO.getCode() != 200) { throw new DkException(returnVO.getMessage()); } diff --git a/face-server/src/main/resources/application-dev.yml b/face-server/src/main/resources/application-dev.yml index c051148..1089f2f 100644 --- a/face-server/src/main/resources/application-dev.yml +++ b/face-server/src/main/resources/application-dev.yml @@ -131,7 +131,7 @@ videotype: (mp4|flv|avi|rm|rmvb|wmv) #minio 配置 minio: - url: http://192.168.1.161:9000 - accessKey: admin - secretKey: Dkha123. + url: http://192.168.1.133:9000 + accessKey: minioadmin + secretKey: minioadmin bucketName: middleware