Davidliu 3 달 전
부모
커밋
01c46ab92e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/core/voip/bot.py

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

@@ -446,11 +446,11 @@ class ToTextBotAgent:
             message = None
             url = f"http://{SERVE_HOST}:40072/botservice"
             headers = {"Content-Type": "application/json"}
-            payload = json.loads(request_data)
+            # payload = json.loads(request_data)
             while try_count > 0:
                 once_start = time.time()
                 try:
-                    response = requests.post(url, data=payload, headers=headers, timeout=3)
+                    response = requests.post(url, data=request_data, headers=headers, timeout=3)
                     if response and response.ok:
                         response_data = response.json()
                         if "data" in response_data and response_data["code"] == 0: