Browse Source

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

774056846 2 months ago
parent
commit
ae0e035729
1 changed files with 6 additions and 6 deletions
  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):
-        if self.call_agent.txtLock:
-            return
+        # if self.call_agent.txtLock:
+        #     return
         # 将实体类转换为JSON字符串
         headers = {'Content-Type': 'application/json'}
         request_data = request.to_json_string()
         url = f"http://{SERVE_HOST}:40072/botservice"
-        self.call_agent.txtLock = True
+        # self.call_agent.txtLock = True
         # 发送POST请求
         print(f"请求数据:{request_data},url:{url}")
         try:
@@ -411,10 +411,10 @@ class ToTextBotAgent:
 
 # 模拟接口请求返回
     def test_request(self, params: BotChatRequest):
-        if self.call_agent.txtLock:
-            return
+        # if self.call_agent.txtLock:
+        #     return
         print("test_request::params=", params)
-        self.call_agent.txtLock = True
+        # self.call_agent.txtLock = True
         response_data = {
             "node_id": "1.0",
             "contents": [],