From 0cdbd4b334c24974ad07424beb8fdd38ec23ba2c Mon Sep 17 00:00:00 2001 From: luogw <3132758203@qq.com> Date: Tue, 17 Mar 2026 09:12:13 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/KnowledgePointApplicationServiceImpl.java | 4 +++- src/main/resources/application-test.yml | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/project/information/application/impl/KnowledgePointApplicationServiceImpl.java b/src/main/java/com/project/information/application/impl/KnowledgePointApplicationServiceImpl.java index 266f3a0..7c7f3de 100644 --- a/src/main/java/com/project/information/application/impl/KnowledgePointApplicationServiceImpl.java +++ b/src/main/java/com/project/information/application/impl/KnowledgePointApplicationServiceImpl.java @@ -95,8 +95,10 @@ public class KnowledgePointApplicationServiceImpl implements KnowledgePointAppli HttpEntity> requestEntity = new HttpEntity<>(body, headers); + String heard = analysisHost.contains("vicp") ? "https" : "http"; + ResponseEntity response = - restTemplate.postForEntity("http://"+analysisHost+":"+analysisPort+analysisUrl, requestEntity, String.class); + restTemplate.postForEntity(heard + "://"+analysisHost+":"+analysisPort+analysisUrl, requestEntity, String.class); log.info("文件 [{}] 解析请求成功,返回结果:{}", file.getOriginalFilename(), response.getBody()); diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index 26cb320..e7bb458 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -62,17 +62,17 @@ milvus: host: 8.129.84.155 port: 19530 analysis: - host: 172.16.204.50 - port: 8888 - url: /word/parse + host: 107pm707566hq.vicp.fun + port: 443 + url: /analysis/word/parse ding: appKey: dinggl2ktuhdhoczkg2o appSecret: nK104mgXPbkCWjX1I-EcYiubjM0FJAYcfqBKPkVcyvrBsLMF9XK1g9Qd_QVOndcK agentId: 4283077101 corpId: ding13d71da66ad91ff0f5bf40eda33b7ba0 algo: - clusterUrl: /semantic-cluster - baseUrl: http://172.16.204.50:8002 + clusterUrl: /algo/semantic-cluster + baseUrl: https://107pm707566hq.vicp.fun generateQuestionUrl: /v1/generate/questions_from_cluster apiUrl: http://8.129.84.155:8000 jwt: