浏览代码

Merge branch 'develop' of ssh://gitlab.fuxicarbon.com:1111/client_service/voice-gateway-service into develop

774056846 5 月之前
父节点
当前提交
ae0e035729
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/core/voip/bot.py

+ 6 - 6
src/core/voip/bot.py

@@ -381,13 +381,13 @@ class ToTextBotAgent:
 
 
 
 
     def to_quest(self, request: BotChatRequest):
     def to_quest(self, request: BotChatRequest):
-        if self.call_agent.txtLock:
-            return
+        # if self.call_agent.txtLock:
+        #     return
         # 将实体类转换为JSON字符串
         # 将实体类转换为JSON字符串
         headers = {'Content-Type': 'application/json'}
         headers = {'Content-Type': 'application/json'}
         request_data = request.to_json_string()
         request_data = request.to_json_string()
         url = f"http://{SERVE_HOST}:40072/botservice"
         url = f"http://{SERVE_HOST}:40072/botservice"
-        self.call_agent.txtLock = True
+        # self.call_agent.txtLock = True
         # 发送POST请求
         # 发送POST请求
         print(f"请求数据:{request_data},url:{url}")
         print(f"请求数据:{request_data},url:{url}")
         try:
         try:
@@ -411,10 +411,10 @@ class ToTextBotAgent:
 
 
 # 模拟接口请求返回
 # 模拟接口请求返回
     def test_request(self, params: BotChatRequest):
     def test_request(self, params: BotChatRequest):
-        if self.call_agent.txtLock:
-            return
+        # if self.call_agent.txtLock:
+        #     return
         print("test_request::params=", params)
         print("test_request::params=", params)
-        self.call_agent.txtLock = True
+        # self.call_agent.txtLock = True
         response_data = {
         response_data = {
             "node_id": "1.0",
             "node_id": "1.0",
             "contents": [],
             "contents": [],