|
|
42609651bd
|
fix: 修复截图登录检查逻辑的条件判断错误
问题:attempt > 0 应该是 attempt > 1
- attempt 从 range(1, max_retries + 1) 开始,值为 1, 2, 3
- 原条件 attempt > 0 在 attempt=1 时就为 True
- 导致 elif 分支(首次尝试逻辑)成为死代码
修复:
- 将 attempt > 0 改为 attempt > 1
- 更新注释使其更清晰准确
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-16 22:16:01 +08:00 |
|
zsglpt Optimizer
|
7e9a772104
|
🎉 项目优化与Bug修复完整版
✨ 主要优化成果:
- 修复Unicode字符编码问题(Windows跨平台兼容性)
- 安装wkhtmltoimage,截图功能完全修复
- 智能延迟优化(api_browser.py)
- 线程池资源泄漏修复(tasks.py)
- HTML解析缓存机制
- 二分搜索算法优化(kdocs_uploader.py)
- 自适应资源配置(browser_pool_worker.py)
🐛 Bug修复:
- 解决截图失败问题
- 修复管理员密码设置
- 解决应用启动编码错误
📚 新增文档:
- BUG_REPORT.md - 完整bug分析报告
- PERFORMANCE_ANALYSIS_REPORT.md - 性能优化分析
- LINUX_DEPLOYMENT_ANALYSIS.md - Linux部署指南
- SCREENSHOT_FIX_SUCCESS.md - 截图功能修复记录
- INSTALL_WKHTMLTOIMAGE.md - 安装指南
- OPTIMIZATION_FIXES_SUMMARY.md - 优化总结
🚀 功能验证:
- Flask应用正常运行(51233端口)
- 数据库、截图线程池、API预热正常
- 管理员登录:admin/admin123
- 健康检查API:http://127.0.0.1:51233/health
💡 技术改进:
- 智能延迟算法(自适应调整)
- LRU缓存策略
- 线程池资源管理优化
- 二分搜索算法(O(log n) vs O(n))
- 自适应资源管理
🎯 项目现在稳定运行,可部署到Linux环境
|
2026-01-16 17:39:55 +08:00 |
|
|
|
f8bbe3da0d
|
fix: 修复应读参数,bz=2 改为 bz=0(适配网站更新)
网站参数变更:
- bz=0: 应读
- bz=1: 已读
- bz=2: 已读(旧参数,已废弃)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-14 12:43:25 +08:00 |
|
|
|
1b85f34a0f
|
fix: 恢复截图顺序,保持完整框架样式
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-14 12:38:52 +08:00 |
|
|
|
f04c5c1c8f
|
fix: 适配网站结构更新
1. 标记已读改用预览通道 (download2.ashx)
2. 截图优先直接访问目标页面,避免 iframe 加载问题
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-14 12:31:22 +08:00 |
|
|
|
45cbdc51b4
|
Show upload status and log KDocs skips
|
2026-01-07 14:28:58 +08:00 |
|
|
|
3bae759afc
|
Integrate KDocs auto-upload
|
2026-01-07 12:32:41 +08:00 |
|
|
|
82acc3470f
|
Ensure menu expanded in screenshots
|
2025-12-31 21:28:28 +08:00 |
|
|
|
2e44afde30
|
Capture full-page wkhtmltoimage shots
|
2025-12-31 20:50:02 +08:00 |
|
|
|
28f4e807a9
|
Fix wkhtmltoimage viewport crop
|
2025-12-31 20:23:31 +08:00 |
|
|
|
3b04f04a31
|
feat: 全屏截图改用管理后台框架
|
2025-12-31 20:12:39 +08:00 |
|
|
|
ea1c7e8a00
|
feat: wkhtmltoimage支持自定义高度
|
2025-12-31 20:05:39 +08:00 |
|
|
|
d269a99d3c
|
fix: wkhtmltoimage使用安全cookie
|
2025-12-31 19:41:34 +08:00 |
|
|
|
7c3d0a0947
|
fix: wkhtmltoimage兼容UA参数
|
2025-12-31 19:13:20 +08:00 |
|
|
|
41ead4bead
|
replace screenshot pipeline and update admin
|
2025-12-31 16:50:35 +08:00 |
|
|
|
1d44859857
|
perf: 优化任务执行速度 (40-70s → ~15s)
问题:容错机制引入了大量叠加的等待时间
优化内容:
- playwright_automation.py:
- 登录超时 30s → 10s
- 导航等待 2s → 0.5s
- navigate_only 等待 1s → 0.3s
- 首页轮询 8次×3s → networkidle + 2次×0.5s
- services/tasks.py:
- 删除截图前固定 sleep(2)
- services/screenshots.py:
- networkidle 超时 30s → 10s
- selector 超时 20s → 5s
预计性能提升:从 40-70 秒降至约 15 秒
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-24 00:19:46 +08:00 |
|
|
|
dac06d187e
|
更新 playwright_automation 和 screenshots 服务
|
2025-12-14 22:04:05 +08:00 |
|
|
|
a346509a5f
|
同步更新:重构路由、服务模块,更新前端构建
|
2025-12-14 21:47:46 +08:00 |
|