From f5e6c4a3c7b8d392ce2e6f2964b8498afcd011c1 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期四, 30 七月 2026 15:51:45 +0800
Subject: [PATCH] 【市一】AI

---
 smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java |   12 ++++--------
 1 files changed, 4 insertions(+), 8 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..e2975bc 100644
--- a/smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java
+++ b/smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java
@@ -1812,13 +1812,9 @@
                 //鐢ㄦ潵鏍囪锛屾槸鍚︽湁鍖归厤涓婄殑
                 Integer flag = 0;
                 //1-AI璇嗗埆
-                SysConfig configVoiceMatchAi = new SysConfig();
-                configVoiceMatchAi.setOrgid(phoneCallReqYQVO.getOrgid());
-                configVoiceMatchAi.setConfigKey("sys.voice.match.ai");
-                SysConfig matchAi = sysConfigMapper.selectConfig(configVoiceMatchAi);
+                String aiUrl = configService.selectConfigByKey("sys.voice.match.ai.url");
 
-            if (ObjectUtils.isNotEmpty(matchAi) && StringUtils.isNotEmpty(matchAi.getConfigValue())
-                    && matchAi.getConfigValue().equals("1")) {
+            if (ObjectUtils.isNotEmpty(aiUrl)) {
                 PhoneCallBackYQVO aiMatchResult = AiMatch(phoneCallReqYQVO, phoneCallBackYQVO,
                         ivrTaskTemplateScriptVO, serviceSubtask, ivrTaskTemplate,
                         ivrTaskTemplateScripts, scriptId, flag, phoneCallReqYQVO.getUuid());
@@ -5070,8 +5066,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