Davidliu 3 months ago
parent
commit
01c46ab92e
1 changed files with 2 additions and 2 deletions
  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: