Commit Graph
81 Commits
Author SHA1 Message Date
Your Name a61ba62864 feat: Enhance yanghao detection with polygon support and template matching
- Updated config.json to include new parameters for yanghao template paths and match thresholds.
- Adjusted default icon match threshold in config to 0.70 for better detection.
- Implemented polygon detection logic in yanghao_idle function to allow for flexible ROI configurations.
- Added support for per-action ROI scaling and sizes in the configuration.
- Introduced new methods in fudai_analyse for capturing ROI screenshots and matching templates.
- Created a test script to validate polygon detection against provided templates.
- Improved error handling and logging for better debugging during detection processes.
2026-01-04 09:06:25 +08:00
Your Name 3678ff7e31 refactor: 优化代码格式,合并多行赋值为单行,调整部分异常处理逻辑 2026-01-03 20:59:43 +08:00
Your Name 6a59365aae feat: 添加推荐页养号功能,支持只养号模式及相关配置 2026-01-03 20:59:27 +08:00
Your Name c6d404834e refactor: 更新时间戳,优化界面元素的布局和格式 2026-01-03 20:33:23 +08:00
Your Name cdada11f81 feat: 添加实时查看功能,支持动态展示截图与动作流 2026-01-03 20:33:07 +08:00
Your Name bffca95af0 refactor: 优化倒计时逻辑,移除多余的时间修正,调整相关日志记录 2026-01-03 19:54:24 +08:00
Your Name d100ac0a66 refactor: 优化代码格式,调整多个文件中的换行和缩进 2026-01-03 19:18:57 +08:00
Your Name 95b4517bdd feat: Enhance logging and parameter tracking capabilities
- Refactor `gui_core.py` to improve code readability and maintainability by adding line breaks for long statements.
- Introduce `inspect_lines.py` script for inspecting specific line ranges in files.
- Add `generate_param_locations.py` to scan the repository and generate a report of function definitions, argparse parameters, and tracking calls.
- Implement `param_usage_tool.py` for analyzing `param_usage.json` records and scanning code for tracking calls.
- Create `simulate_reservation_preempted_flow.py` and `simulate_reservation_preempted_flow_dynamic.py` to validate behavior of reservation logic under specific conditions.
- Add global parameter tracking feature in `run_cli.py` to enable detailed usage tracing.
2026-01-03 19:12:58 +08:00
Your Name 68c8ccea66 refactor: 优化代码格式,调整多行参数传递和异常处理逻辑 2026-01-03 13:31:57 +08:00
Your Name 2fa2073f2e feat(reservation): Update reservation details and improve logging
- Updated reservation JSON data with new room titles, prize values, and timestamps.
- Enhanced logging in `douyin_fudai_core.py` to include OCR duration summaries for better analysis.
- Modified `SwipeHandler` to allow forced switching during seek processes to prevent deadlocks.
- Improved logging wrapper to handle field extraction and elapsed time calculations more robustly.
- Refactored log formatting functions for better readability and consistency.
- Added total timeout handling in `process_reservation_attend_window` to prevent blocking.
- Removed automatic backtracking in reservation verification to avoid infinite loops.
- Updated configuration management to include total timeout settings for reservations.
- Enhanced error handling and logging in `fudai_detail_reader.py` for validation failures.
2026-01-03 13:30:55 +08:00
Your Name 1223a1ea5a feat: 更新配置文件,启用开关并优化日志格式化,增强耗时字段处理 2026-01-03 12:44:13 +08:00
Your Name 1105ed618f feat: 更新日志记录功能,添加自检脚本以检查 action_logger 初始化与绑定状态 2026-01-03 12:35:17 +08:00
Your Name 57177ef7a2 fix: 更新reservations.json中的时间戳,优化代码格式 2026-01-03 12:31:30 +08:00
Your Name cf95efc9a4 feat: 更新OCR任务识别功能,添加配置开关以控制内容识别 2026-01-03 12:02:00 +08:00
Your Name 1a69dd87b1 chore: tighten .gitignore to ignore generated reports, logs and archives 2026-01-03 12:00:09 +08:00
Your Name 2aa0aec99a feat: 添加任务列表OCR开关,更新配置与日志记录功能 2026-01-03 11:34:24 +08:00
Your Name 4f74a5e95a chore: remove generated reports and logs from repo, update .gitignore 2026-01-03 11:22:41 +08:00
Your Name 488f6a1fdf chore: remove generated reports and logs from repo, update .gitignore 2026-01-03 11:22:33 +08:00
Your Name ee0511e327 feat(logging): 更新日志记录,添加不同日志类型以增强调试信息 2026-01-03 04:07:10 +08:00
Your Name b8593c728a chore: empty commit for code changes 2026-01-03 04:03:02 +08:00
Your Name 9e08ed3bd0 chore: remove OCR archive, delete collect_ocr_failures, update docs 2026-01-03 03:50:45 +08:00
Your Name f2cd77ab0b feat(logging): 添加日志配置中的默认值以确保所有分支可用 2026-01-03 03:37:41 +08:00
Your Name 768f04c5d5 refactor(logging): 统一字符串引号风格,优化日志处理输出格式 2026-01-03 01:10:59 +08:00
Your Name 3d93f7f723 feat(logging): enhance logging configuration and file handling
- Updated the maximum log file size to 10MB and reduced backup count to 5.
- Introduced a `per_run` option to generate independent log files for each run.
- Improved log file naming conventions based on the `per_run` setting.
- Added support for both size-based and time-based log rotation configurations.
- Implemented error handling for OCR click execution in `douyin_helpers.py`.
- Added new CSV report for OCR regions and updated logging for click actions.
- Introduced a temporary script to check logging configurations and handlers.
- Added a new log file for unified logs dated 2025-12-27.
- Updated reservations timestamp in JSON state file.
2026-01-03 01:06:49 +08:00
Your Name 25ed50cc3c feat: Add AI project summary and coordinate constants for Douyin Fudai
- Created AI_PROJECT_SUMMARY.md for quick understanding of project structure, data flow, key interfaces, and verification points.
- Added key modules and data flow overview for automated participation in Douyin Fudai lottery.
- Introduced a JSON schema example for configuration and provided quick validation steps.
- Updated coordinate constants in coords.py for various cropping areas related to Fudai details, ensuring centralized management of coordinates.
- Generated a new actions log file for tracking actions performed by the application.
2026-01-03 00:06:59 +08:00
Your Name 0b5f150691 Refactor and clean up code across multiple scripts
- Removed trailing whitespace and ensured files end with a single newline in cleanup_unused_files.py.
- Added fix_trailing_whitespace.py to batch remove trailing whitespace from Python files.
- Updated install_dependencies.py to improve dependency installation prompts.
- Cleaned up pick_coords.py by removing unnecessary whitespace and improving code readability.
- Enhanced region_selector.py by disabling specific pylint checks for better compatibility with third-party libraries.
- Improved WPS流程图生成工具.py by cleaning up whitespace and enhancing readability.
- Updated __init__.py in typings to remove unnecessary lines.
- Modified app.js to adjust default configuration values and clean up unused code.
2026-01-02 23:57:03 +08:00
Your Name 9131c48633 Refactor screenshot service for improved performance and error handling; add simplified version to avoid linter issues. Update tests and documentation accordingly. 2026-01-02 02:17:33 +08:00
Your Name a0aad21835 feat: Optimize ADB exec-out and OCR performance
- Introduced performance enhancements for ADB exec-out, reducing execution time by 10-20% through the use of Popen with streaming reads, increased buffer sizes, and removal of unnecessary fsync calls.
- Implemented optimizations in OCR processing, cutting recognition time by 50% by refining button recognition logic and improving image loading and preprocessing methods.
- Added detailed performance diagnostics and configuration options to facilitate further optimizations.
- Created new documentation files outlining the performance improvements and recommendations for future enhancements.
2026-01-02 02:06:01 +08:00
Your Name 148cdf56c2 Refactor import statements for douyin_screenshot_manager to use dynamic loading
- Updated multiple files to replace static imports of `douyin_screenshot_manager` with dynamic imports using `importlib`. This change enhances flexibility and prevents import errors when the module is unavailable.
- Added fallback mechanisms in `fudai_core.py` to ensure the application continues to function even if certain dependencies are missing, improving robustness.
- Adjusted error handling to provide clearer feedback during initialization failures, particularly for OCR-related components.
2026-01-01 19:42:03 +08:00
Your Name c7b5d6be0f 后台保存debug图像 2026-01-01 13:25:50 +08:00
Your Name 7b93413af7 回退到直接截图 2026-01-01 11:30:59 +08:00
Your Name 478ae69052 chore: Clean up blank lines and enhance code organization
- Removed excessive blank lines from multiple Python scripts and configuration files to improve readability and maintainability.
- Ensured consistent formatting across the project, contributing to a more organized codebase.
- Added new files for testing and analysis, including `test_screenshot_error_handling.py` and `test_screenshot_reuse_optimization.py`, to improve testing coverage and functionality.
2026-01-01 10:04:32 +08:00
Your Name 7db9864848 feat: Introduce JPEG support check and remove obsolete files
- Added a new script `check_jpeg_support.py` to verify device support for JPEG screenshots, enhancing functionality for image processing.
- Deleted obsolete files including `auto_test_result.txt`, `CODE_QUALITY_REVIEW.md`, and others to streamline the project and improve maintainability.
- Cleaned up unnecessary blank lines in various scripts to enhance readability and organization.
2025-12-31 17:01:18 +08:00
Your Name 07c387751d chore: Clean up blank lines across multiple files to enhance readability
- Removed excessive blank lines in various Python scripts, markdown files, and configuration files to improve overall code clarity and maintainability.
- Ensured consistent formatting throughout the project, contributing to a more organized codebase.
2025-12-31 17:00:58 +08:00
Your Name ace3bbfa04 优化后台截图功能 2025-12-31 11:55:01 +08:00
Your Name 223c127e11 chore: Clean up and refactor codebase for improved maintainability
- Removed obsolete command-line test parameters from `run_cli.py` to streamline functionality.
- Introduced a new `ocr_preprocess.py` module for unified OCR image preprocessing, enhancing recognition stability.
- Updated various components to utilize the new preprocessing function, improving code organization and readability.
- Adjusted configuration values in `config.json` for better performance and consistency.
- Added comprehensive technical documentation for the Douyin project, detailing code modification standards and operational guidelines.
- Cleaned up excessive blank lines across multiple files to enhance overall readability.
2025-12-30 23:11:34 +08:00
Your Name efe6e2252f feat: Add logging and error handling enhancements
- Introduced new logging modules for action tracking, error logging, and performance tracking to improve observability.
- Added functions for retrieving debug and error log paths in `path_config.py`.
- Updated various components to utilize the new logging system, enhancing error handling and performance diagnostics.
- Implemented a GUI component for viewing error logs, improving user experience in monitoring application issues.
- Cleaned up unnecessary blank lines and improved code readability across multiple files.
2025-12-29 20:48:09 +08:00
Your Name bdf9312bc9 chore: Remove obsolete scripts and enhance path configuration
- Deleted `check_md_files.py` and `fix_cursor_md_issue.py` as they are no longer needed.
- Added new functions in `path_config.py` for better path management, including actions log and run_cli paths.
- Updated various modules to utilize the new path configuration, ensuring consistency and maintainability across the project.
2025-12-28 20:55:34 +08:00
Your Name b9849b9f5a chore: Remove obsolete scripts and enhance path configuration
- Deleted `check_md_files.py` and `fix_cursor_md_issue.py` as they are no longer needed.
- Added new functions in `path_config.py` for better path management, including actions log and run_cli paths.
- Updated various modules to utilize the unified path configuration, ensuring backward compatibility and improved maintainability.
- Enhanced documentation in `README.md` to reflect changes in path management and project structure.
2025-12-28 20:47:30 +08:00
Your Name a0162e3b81 chore: Remove path_demo.py and enhance path configuration handling
- Deleted the obsolete path_demo.py file to streamline the project structure.
- Updated various modules to utilize a unified path configuration approach, improving maintainability and consistency.
- Implemented fallback mechanisms for path retrieval to ensure backward compatibility with existing code.
- Enhanced import statements for clarity and organization across the project.
2025-12-28 15:20:03 +08:00
Your Name 26df350755 feat: Implement 30-minute timeout protection and unify path configurations
- Introduced a 30-minute timeout mechanism to prevent the script from getting stuck in invalid states, with configurable timeout settings.
- Unified path configurations across the project to enhance maintainability and avoid hardcoded paths.
- Updated documentation and flowcharts to reflect the new timeout feature and improved path management.
- Fixed issues with template and screenshot path configurations to ensure consistency across the project.
v3.3.3
2025-12-28 14:47:31 +08:00
Your Name 686dde5cc0 chore: Remove obsolete files and clean up project structure
- Deleted unnecessary files including worktree configuration, markdown history logs, and ignored files to streamline the project.
- Enhanced overall project organization by removing outdated documentation and artifacts.
- Improved maintainability by ensuring only relevant files are retained in the repository.
2025-12-28 14:46:32 +08:00
Your Name c67f22f76f feat: Refactor and reorganize project structure with new modules and files
- Deleted obsolete files including test scripts and configuration files to streamline the project.
- Introduced new modules for handling Douyin functionalities, including core operations, logging, and GUI components.
- Updated import paths to reflect the new module structure, enhancing code organization and maintainability.
- Added configuration files and documentation to support the new structure and improve user guidance.
2025-12-28 14:16:40 +08:00
Your Name ea7159355b fix: Clean up blank lines and enhance readability across multiple files
- Removed excessive blank lines from various markdown and Python files to improve readability and maintainability.
- Ensured consistent formatting across documentation and code files, contributing to overall project clarity.
- Updated logging mechanisms for better consistency and debugging support.
2025-12-27 17:10:19 +08:00
Your Name efaa3d3adc fix: Clean up blank lines and enhance readability across multiple files
- Removed excessive blank lines from various markdown and Python files to improve readability and maintainability.
- Ensured consistent formatting across documentation and code files, contributing to overall project clarity.
- Enhanced logging mechanisms for better consistency and debugging support.
2025-12-27 15:19:04 +08:00
Your Name 4678adb8f3 fix: Clean up blank lines and enhance readability across multiple files
- Removed excessive blank lines from various markdown and Python files to improve readability and maintainability.
- Ensured consistent formatting across documentation and code files, contributing to overall project clarity.
2025-12-27 10:42:24 +08:00
Your Name 7849b62d44 fix: Enhance logging and clean up blank lines across multiple files
- Improved logging for reservation handling and participation decisions to provide better traceability.
- Cleaned up excessive blank lines in various markdown and Python files to enhance readability and maintainability.
- Ensured consistent formatting across documentation and code files, contributing to overall project clarity.
2025-12-27 10:35:15 +08:00
Your Name 5c0fd75674 fix: Simplify reservation backtracking and enhance participation logic
- Streamlined the `_handle_reservation_direct_attend()` method to directly use reservation details, eliminating the need for OCR recognition.
- Introduced a `_force_attend_after_reservation_back` flag to bypass countdown checks during participation after a backtrack.
- Updated the `basic_join_decision()` function to respect the new flag, ensuring immediate participation when set.
- Enhanced logging for better traceability of reservation handling and participation decisions.
v3.3.2
2025-12-26 22:10:28 +08:00
Your Name 499002d3b1 fix: Clean up blank lines and enhance readability across multiple files
- Removed excessive blank lines from various markdown and Python files to improve readability and maintainability.
- Ensured consistent formatting across documentation and code files, enhancing overall project clarity.
- Updated logging mechanisms for better consistency and debugging support.
2025-12-26 21:59:54 +08:00
Your Name 36b39b1fac fix: Update debug image handling and enhance reservation display
- Added a configuration option in `config.json` to enable or disable debug image saving, defaulting to false for improved performance.
- Updated the GUI and web interface to display reservation details in Chinese, enhancing readability and user experience.
- Adjusted the click coordinates for joining the fan club and added logic to close the details page after joining.
- Cleaned up blank lines across multiple files to improve code readability and maintainability.
2025-12-26 15:09:18 +08:00