Commit Graph
47 Commits
Author SHA1 Message Date
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
Your Name 5d22250b05 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 14:54:26 +08:00
Your Name f36f1a9593 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 13:00:07 +08:00
Your Name d0702c863f 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 12:01:40 +08:00
Your Name ea4cb7552f fix: Update configuration and enhance reservation handling
- Adjusted configuration values in `config.json` for minimum prize value, countdown skip time, and high-value fudai thresholds to optimize performance.
- Implemented logic in `douyin_fudai.py` to clear the reservation queue on the first run, ensuring accurate data loading.
- Enhanced logging during reservation handling to provide clearer insights into the process.
- Removed redundant checks and improved code clarity in the reservation logic.
2025-12-26 11:21:38 +08:00
Your Name 5a55265e9a 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 configuration settings and logging mechanisms for better consistency and debugging support.
2025-12-26 09:16:29 +08:00
Your Name 235c5076eb fix: Update reservation handling and improve logging
- Fixed issues with the reservation backtracking feature by ensuring the `needswitch` configuration is correctly loaded from `config.json`.
- Enhanced the logging for reservation backtracking logic to provide detailed insights during execution.
- Updated the `reservations.json` file to reflect the latest reservation details, including changes to future timestamps and content.
- Cleaned up unnecessary blank lines in various markdown and Python files for better readability.
2025-12-25 17:31:46 +08:00
Your Name e69ded6907 fix: Resolve UnboundLocalError by removing redundant imports
- Removed unnecessary `import time` statements from the `basic_join_decision` function, which were causing `UnboundLocalError` due to local variable shadowing.
- Added a comment to clarify that the `time` module is imported at the file level, ensuring proper usage within the function.
- Updated the `reservations.json` file to reflect the latest reservation details, including changes to room position and prize values.
2025-12-25 17:06:07 +08:00
Your Name 29f7b19916 fix: Clean up code by removing unnecessary blank lines
- Removed excessive blank lines from various markdown and Python files to enhance readability and maintainability.
- Ensured consistent formatting across documentation and code files, improving overall project clarity.
2025-12-25 16:55:44 +08:00
Your Name c30b73bbd3 feat: Enhance documentation and improve code structure
- Added comprehensive documentation for the unified screenshot and score recording process in the new markdown file.
- Updated existing markdown files to include additional spacing for better readability.
- Improved code structure by adding type hints and comments for clarity in various Python scripts.
- Enhanced logging functionality to support better debugging and monitoring across modules.
- Streamlined configuration settings to ensure consistency and clarity in the project structure.
2025-12-25 16:12:13 +08:00
Your Name f92933641f feat: Enhance documentation and clean up code structure
- Added comprehensive documentation for the unified screenshot and score recording process in the new markdown file.
- Improved existing markdown files by adding spacing for better readability.
- Cleaned up code by removing unnecessary blank lines across various scripts, enhancing overall code clarity.
- Updated configuration settings to reflect recent changes and ensure consistency across the project.
- Enhanced logging mechanisms to support better debugging and monitoring.
2025-12-25 16:11:25 +08:00
Your Name e68f1dd3de feat: Refactor coverage management and enhance logging functionality
- Removed the `.coverage` file from the repository to streamline coverage management.
- Updated `.gitignore` to exclude coverage-related files and directories, ensuring a cleaner project structure.
- Introduced new scripts for checking GPU availability and detecting GUI parameter conflicts, enhancing the overall functionality of the application.
- Improved logging mechanisms across various modules to support better debugging and monitoring.
- Added comprehensive documentation for new features and updated existing markdown files for clarity.
2025-12-23 02:38:51 +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 ce4a332dc0 feat: Add 30-minute timeout protection and manual return key functionality
- Introduced a 30-minute timeout protection mechanism that automatically returns to the recommendation page if participation in the 福袋 is unsuccessful within the time limit.
- Added a manual return key button in the GUI to allow users to send a return command manually.
- Fixed indentation errors and removed leftover code blocks.
- Updated the README documentation to include descriptions of the new features.
- Revised flowchart documentation to reflect the new 30-minute timeout protection process.
- Enhanced error handling and logging throughout the application.
2025-12-22 05:06:57 +08:00
Your Name 97bda4816f feat: 娣诲姞30鍒嗛挓瓒呮椂淇濇姢鍜屾墜鍔ㄥ彂閫佽繑鍥為敭鍔熻兘 2025-12-22 05:02:09 +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 42bd51cc70 feat: Add WPS flowchart generation and documentation
- Introduced a new Python script for generating WPS-compatible flowcharts in SVG format using Mermaid.
- Added detailed documentation on how to import flowcharts into WPS, including step-by-step instructions for both SVG and text formats.
- Created a comprehensive flowchart file detailing the Douyin 福袋挂机程序's processes, including optimizations and configurations.
- Enhanced existing markdown files to provide clarity on the flowchart structure and usage.
- Updated configuration settings to support new flowchart features and improve overall project documentation.
2025-12-22 02:32:47 +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.
v3.3.0
2025-12-22 01:30:09 +08:00
Your Name 08a0b41834 Auto commit: 2025-12-21 22:45:59 - Hourly auto save 2025-12-21 22:46:00 +08:00
Your Name 5b8dd6e5d4 Auto commit: 2025-12-21 22:45:00 - Hourly auto save 2025-12-21 22:45:01 +08:00
Your Name 1a63852bde feat: Add dependency management tools and enhance logging features
- Introduced `check_dependencies.py` to automate dependency checks and provide installation guidance.
- Created `install_dependencies.py` for automatic installation of missing dependencies.
- Updated `config.json` to include new logging settings for log retention and date-based log file management.
- Added `DEPENDENCY_GUIDE.md` and `DEPENDENCY_FIXES_REPORT.md` for comprehensive documentation on dependency management and fixes.
- Enhanced logging functionality in `douyin_logging.py` to support date-based log files and automatic cleanup of old logs.
2025-12-21 22:40:56 +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 5bb7d34054 feat: Update 福袋 detection logic and configuration settings
- Adjusted `config.json` to extend quiet hours and modify the 福袋 template match threshold.
- Enhanced `douyin_detection.py` with a new pixel detection method for identifying 福袋 icons, including improved error handling and retry logic.
- Refined the filtering logic in `douyin_flow_control.py` to streamline 福袋 detail processing.
- Updated `douyin_fudai_core.py` to focus on blacklisting keywords for 福袋 content filtering.
- Implemented a new detection method for 福袋 detail pages in `douyin_pixel.py`, prioritizing template matching.
- Enhanced GUI elements in `gui_app.py` to support new configuration options for 福袋 detection.
- Added functionality for navigating images in `tools/pick_coords.py`.
2025-12-19 17:07:03 +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 b0bd7c72c8 refactor: Remove outdated batch script and enhance configuration settings
- Deleted the obsolete batch script for launching the Web GUI.
- Updated `config.json` to increase `webgui_log_capacity` to 2000 and set `reset_after_swipes` to 15.
- Enabled `reset_after_swipes_enabled` for improved functionality.
- Added a new field `reservation_back_swipe_delay` to enhance reservation handling.
- Improved OCR caching and detection mechanisms in `douyin_fudai.py` for better performance.
- Enhanced logging functionality in `web_gui.py` to handle ANSI escape codes and improve error handling.
2025-12-16 16:49:29 +08:00
Your Name 5bbf59f13f feat: 更新 README,优化 OCR 识别逻辑,调整高价值房间和预约数据结构 v3.3.1 2025-12-15 20:43:00 +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.
v3.0.0 v3.1.0 v3.2.0
2025-12-15 18:17:16 +08:00