Commit Graph
15 Commits
Author SHA1 Message Date
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 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.
2025-12-28 14:47:31 +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 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 539e580147 feat: Add coverage report generation and enhance testing framework
- Introduced a new `.coverage` file for tracking test coverage metrics.
- Added `pytest.ini` configuration for streamlined testing setup, including coverage reporting and logging options.
- Created `requirements-test.txt` to manage testing dependencies, ensuring a consistent testing environment.
- Implemented a `run_tests.py` script to facilitate running tests with various options, including unit and integration tests.
- Established a structured testing directory with unit and integration tests, enhancing code reliability and maintainability.
- Updated documentation to reflect new testing procedures and configurations.
2025-12-22 13:26:26 +08:00
Your Name fe0098c591 feat: Enhance 福袋 template matching functionality
- Introduced a new configuration option to enable or disable 福袋 template matching, improving user control over the feature.
- Updated command-line arguments to support enabling and disabling the 福袋 template matching feature.
- Enhanced the GUI to include options for configuring 福袋 template matching settings.
- Improved error handling and logging in various modules to support the new functionality.
- Updated documentation to reflect changes in 福袋 template matching features and configuration options.
2025-12-22 04:05:22 +08:00
Your Name 533943620c feat: Optimize OCR performance and enhance debugging features
- Implemented parallel execution for OCR tasks, significantly improving recognition speed for content, countdown, and value detection.
- Updated configuration settings to support automatic cleanup of debug captures, including retention days and maximum file limits.
- Enhanced GUI to include new options for debugging parameters, allowing users to configure debug capture settings directly.
- Improved documentation to reflect changes in OCR functionality and debugging features, ensuring clarity for users.
- Refined error handling and logging across various modules to facilitate better monitoring and troubleshooting.
2025-12-22 03:27:37 +08:00
Your Name e5a510d19b feat: Introduce unified logging system and optimize file management
- Added a new unified logging module to standardize log formatting, including support for traceId and MDC for better tracking.
- Updated `.gitignore` to exclude code analysis reports and temporary files.
- Created cleanup scripts to manage unused files and generate cleanup reports.
- Enhanced existing modules to integrate the new logging system and improve debugging capabilities.
- Removed outdated files and scripts to streamline the project structure.
2025-12-22 01:30:09 +08:00
Your Name 2cd81c05a3 fix: Adjust configuration settings and improve error handling
- Updated `config.json` to modify `yanghao_recommend_interval_seconds` for better timing control.
- Refactored logging in `douyin_detection.py` to enhance readability and error handling.
- Improved pixel loading and error management in image processing functions across multiple modules.
- Enhanced GUI elements in `gui_app.py` to support new configuration options and improve user experience.
2025-12-21 21:55:30 +08:00
Your Name 47e6b016c5 refactor: Remove deprecated files and enhance configuration settings
- Deleted outdated markdown files and scripts related to previous implementations.
- Updated `config.json` to adjust thresholds and settings for 福袋 detection and reservation handling.
- Improved logging and error handling across various modules for better monitoring and user experience.
- Introduced a new screenshot management module to facilitate real-time operation and success tracking.
- Enhanced GUI elements to support new configuration options and improve usability.
2025-12-20 20:11:28 +08:00
Your Name 8b47b506d6 feat: Enhance 福袋 detection and reservation logic
- Updated `config.json` to introduce new settings for infinite loop mode and adjust various thresholds for 福袋 detection.
- Refined the pixel detection logic in `douyin_detection.py` to improve error handling and retry mechanisms.
- Enhanced reservation handling in `douyin_flow_control.py` to prioritize high-value 福袋 and streamline the switching process.
- Improved the GUI in `gui_app.py` to support new configuration options and ensure better user experience.
- Added new tools for analyzing 福袋 colors and comparing them with coupon colors to aid in detection accuracy.
- Updated documentation to reflect changes in configuration and usage instructions.
2025-12-20 13:32:32 +08:00
Your Name 0163f27318 feat: Enhance OCR functionality and template matching for 福袋 detection
- Updated `config.json` to include new settings for `enable_ocr_mode1` and `fudai_template_match_threshold`.
- Refactored `douyin_detection.py` to implement template matching for 福袋 detection, replacing the previous pixel-based method.
- Improved error handling and logging for template matching operations.
- Added GUI options for enabling OCR mode and adjusting template matching threshold.
- Enhanced command-line interface to support new OCR and template matching parameters.
2025-12-19 14:11:16 +08:00
Your Name 836a31d817 refactor: Remove outdated files and enhance Web GUI functionality
- Deleted obsolete markdown files related to follow tab coordinates testing and results.
- Removed outdated batch scripts for launching the Web GUI.
- Updated `config.json` to improve reservation handling and adjust prize value settings.
- Enhanced logging and error handling in `web_gui.py` and `app.js` for better user experience.
- Added automatic screenshot functionality during Web GUI startup for improved monitoring.
2025-12-19 03:31:08 +08:00
Your Name ea8d221543 feat: Add runtime overrides for reservation settings and update high value rooms
- Introduced new command-line arguments for runtime configuration:
  - `--reservation-back-swipe-delay`: Adjusts swipe delay after rollback (only effective when rollback verification is disabled).
  - `--reservation-preempt-min-value`: Sets the minimum value for preempting reservations.
  - `--fudai-find-max-attempts`: Limits the maximum attempts to find the 福袋 icon.

- Updated `high_value_rooms.json` to reflect new room entries and updated timestamps.
- Modified `reservations.json` to change the current reservation details and added a new reservation entry.
- Enhanced `web_gui.py` to support new runtime parameters from the GUI.
- Updated `app.js` and `index.html` in the web UI to include new settings for 福袋 attempts, reservation preemption value, and swipe delay.
2025-12-15 20:31:41 +08:00
Your Name 02b2930639 Add styles for web UI and create batch script for launching Web GUI
- Introduced a comprehensive CSS file for styling the web interface, including variables for colors, layout styles, and responsive design adjustments.
- Added a batch script to automate the process of stopping any existing instances of the web GUI and launching the new instance, along with opening the browser to the appropriate URL.
2025-12-15 18:17:16 +08:00