修复bug和清理调试代码

1. email_service.py: 删除未定义的log_email_send调用(send_email内部已记录日志)
2. app.py: 删除[DEBUG run_task]调试打印语句
3. playwright_automation.py: 删除[调试]诊断日志块

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-12 15:36:36 +08:00
parent b15e6f2af0
commit 90f503518f
3 changed files with 1 additions and 30 deletions

3
app.py
View File

@@ -1952,8 +1952,7 @@ def run_task(user_id, account_id, browse_type, enable_screenshot=True, source="m
retry_count: 当前重试次数用于自动重试机制最多重试2次
"""
MAX_AUTO_RETRY = 2 # 最大自动重试次数
print(f"[DEBUG run_task] account={account_id}, enable_screenshot={enable_screenshot} (类型:{type(enable_screenshot).__name__}), source={source}, retry={retry_count}")
if user_id not in user_accounts or account_id not in user_accounts[user_id]:
return