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: