|
@@ -454,6 +454,7 @@ class ToTextBotAgent:
|
|
|
try_count = try_count - 1
|
|
|
response = session.post(url=url, json=json.loads(request_data), timeout=3)
|
|
|
# response = requests.post(url=url, json=json.loads(request_data), headers=headers, timeout=10) # 使用占位URL
|
|
|
+ self.call_agent.logger.info("to_request come in , try_count=%s", try_count)
|
|
|
if response.status_code == 200:
|
|
|
response_data = response.json()
|
|
|
if "data" in response_data and response_data["code"]==0:
|