From 8e6c328121391f0eb6c85f911a11603cbb906829 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期四, 30 七月 2026 15:46:43 +0800
Subject: [PATCH] 【市一】AI
---
smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java b/smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java
index 373bdb2..1bbf460 100644
--- a/smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java
+++ b/smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java
@@ -1814,11 +1814,10 @@
//1-AI璇嗗埆
SysConfig configVoiceMatchAi = new SysConfig();
configVoiceMatchAi.setOrgid(phoneCallReqYQVO.getOrgid());
- configVoiceMatchAi.setConfigKey("sys.voice.match.ai");
+ configVoiceMatchAi.setConfigKey("sys.voice.match.ai.url");
SysConfig matchAi = sysConfigMapper.selectConfig(configVoiceMatchAi);
- if (ObjectUtils.isNotEmpty(matchAi) && StringUtils.isNotEmpty(matchAi.getConfigValue())
- && matchAi.getConfigValue().equals("1")) {
+ if (ObjectUtils.isNotEmpty(matchAi) && StringUtils.isNotEmpty(matchAi.getConfigValue())) {
PhoneCallBackYQVO aiMatchResult = AiMatch(phoneCallReqYQVO, phoneCallBackYQVO,
ivrTaskTemplateScriptVO, serviceSubtask, ivrTaskTemplate,
ivrTaskTemplateScripts, scriptId, flag, phoneCallReqYQVO.getUuid());
@@ -5070,8 +5069,8 @@
String jsonString = jsonObject.toJSONString();
String result = null;
- String url = "http://localhost:8099/matchOptionIndex";
-// String url = configService.selectConfigByKey("sys.voice.match.ai.url");
+// String url = "http://localhost:8099/matchOptionIndex";
+ String url = configService.selectConfigByKey("sys.voice.match.ai.url");
if(StringUtils.isNotEmpty(url)){
try {
Map<String, String> headers = new HashMap<>();
--
Gitblit v1.9.3