debug(danding_api): 添加post_vcode请求参数调试日志

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 11:41:04 +08:00
parent e68305d306
commit d77007f5a2

View File

@@ -38,6 +38,7 @@ async def post_vcode(user: str, admin_user: str = "1424473282") -> str:
"""生成QQ绑定验证码并发送邮件"""
_url = plugin_config.DDApi_Host + router["生成QQ验证码"]
data = {"user": admin_user, "token": plugin_config.Token, "qq": user}
logger.debug(f"post_vcode: url={_url}, token='{plugin_config.Token}', data={data}")
try:
async with aiohttp.ClientSession() as session:
async with session.post(_url, json=data, timeout=aiohttp.ClientTimeout(total=10)) as resp: