异常派发修复注释

This commit is contained in:
z66
2025-11-18 09:07:56 +08:00
parent b1d4b34d40
commit baa8fe19ac
12 changed files with 589 additions and 8567 deletions
+3 -1
View File
@@ -151,7 +151,9 @@ class YDAPI:
try:
res = requests.post(api, headers=headers, json=formData)
res.raise_for_status() # 如果返回状态码不是2xx,抛出异常
logger.info(f"HTTP Status Code: {res.status_code}")
logger.info(f"Response Headers: {dict(res.headers)}")
logger.info(f"Raw Response Text: {res.text}") # 注意:不要在线上环境打印敏感数据!
return res.json()
except requests.exceptions.RequestException as e: