Browse Source

bug修复

master
luogw 1 month ago
parent
commit
0cdbd4b334
  1. 4
      src/main/java/com/project/information/application/impl/KnowledgePointApplicationServiceImpl.java
  2. 10
      src/main/resources/application-test.yml

4
src/main/java/com/project/information/application/impl/KnowledgePointApplicationServiceImpl.java

@ -95,8 +95,10 @@ public class KnowledgePointApplicationServiceImpl implements KnowledgePointAppli
HttpEntity<MultiValueMap<String, Object>> requestEntity =
new HttpEntity<>(body, headers);
String heard = analysisHost.contains("vicp") ? "https" : "http";
ResponseEntity<String> 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());

10
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:

Loading…
Cancel
Save