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.
This commit is contained in:
Your Name committed 2025-12-22 05:06:57 +08:00
1 parent 97bda4816f
commit ce4a332dc0
13 files changed
+425 -1

No files matched your search

@@ -20682,9 +20682,421 @@ Lines added: 9, lines removed: 3
---
_**User**_
_**User (2025-12-21 20:50Z)**_
保存一下我的git并推送到github
---
_**Agent (model default, mode Agent)**_
---
检查 git 状态,然后提交并推送到 GitHub:
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git status</summary>
```bash
git status
```
```
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged &lt;file&gt;..." to unstage)
new file: .specstory/history/2025-12-21_17-43Z-lucky-bag-participation-rule.md
deleted: .specstory/history/2025-12-21_17-43Z-pylint-checks.md
modified: CLEANUP_REPORT.md
modified: DEBUG_IMAGE_SYSTEM.md
modified: DEPENDENCY_FIXES_REPORT.md
modified: DEPENDENCY_GUIDE.md
modified: FIXES_REPORT.md
modified: FUDAI_FINDER_OPTIMIZATION.md
modified: "WPS\346\265\201\347\250\213\345\233\276\350\257\264\346\230\216.md"
modified: check_dependencies.py
modified: config.json
modified: douyin_detection.py
modified: douyin_flow_control.py
modified: douyin_fudai.py
modified: douyin_fudai_core.py
modified: douyin_fudai_finder.py
modified: gui_app.py
modified: gui_core.py
modified: requirements-minimal.txt
modified: requirements.txt
modified: "\346\265\201\347\250\213\345\233\276_WPS\346\226\207\346\234\254\346\240\274\345\274\217.txt"
modified: "\347\224\237\346\210\220WPS\346\265\201\347\250\213\345\233\276.py"
Changes not staged for commit:
(use "git add &lt;file&gt;..." to update what will be committed)
(use "git restore &lt;file&gt;..." to discard changes in working directory)
modified: .specstory/.what-is-this.md
modified: .specstory/history/2025-12-21_17-43Z-lucky-bag-participation-rule.md
modified: README.md
modified: "WPS\350\257\246\347\273\206\346\265\201\347\250\213\345\233\276.txt"
modified: douyin_detection.py
modified: douyin_flow_control.py
modified: "\346\265\201\347\250\213\345\233\276.md"
```
</details>
</tool-use>
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git diff --stat</summary>
```bash
git diff --stat
```
```
warning: in the working copy of '.specstory/.what-is-this.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.specstory/history/2025-12-21_17-43Z-lucky-bag-participation-rule.md', LF will be replaced by CRLF the next time Git touches it
...25-12-21_17-43Z-lucky-bag-participation-rule.md | 3931 ++++++++++++++++++++
README.md | 55 +-
...73\206\346\265\201\347\250\213\345\233\276.txt" | 34 +-
douyin_detection.py | 78 -
douyin_flow_control.py | 11 -
"\346\265\201\347\250\213\345\233\276.md" | 27 +-
6 files changed, 4037 insertions(+), 99 deletions(-)
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'WPS详细流程图.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'douyin_detection.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'douyin_flow_control.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '流程图.md', LF will be replaced by CRLF the next time Git touches it
```
</details>
</tool-use>
---
---
添加所有更改的文件,然后提交并推送:
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git add -A</summary>
```bash
git add -A
```
```
warning: in the working copy of '.specstory/.what-is-this.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '.specstory/history/2025-12-21_17-43Z-lucky-bag-participation-rule.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'README.md', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'WPS详细流程图.txt', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'douyin_detection.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'douyin_flow_control.py', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of '流程图.md', LF will be replaced by CRLF the next time Git touches it
```
</details>
</tool-use>
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git status --short</summary>
```bash
git status --short
```
```
A .specstory/history/2025-12-21_17-43Z-lucky-bag-participation-rule.md
D .specstory/history/2025-12-21_17-43Z-pylint-checks.md
M CLEANUP_REPORT.md
M DEBUG_IMAGE_SYSTEM.md
M DEPENDENCY_FIXES_REPORT.md
M DEPENDENCY_GUIDE.md
M FIXES_REPORT.md
M FUDAI_FINDER_OPTIMIZATION.md
M README.md
M "WPS\346\265\201\347\250\213\345\233\276\350\257\264\346\230\216.md"
M "WPS\350\257\246\347\273\206\346\265\201\347\250\213\345\233\276.txt"
M check_dependencies.py
M config.json
M douyin_detection.py
M douyin_flow_control.py
M douyin_fudai.py
M douyin_fudai_core.py
M douyin_fudai_finder.py
M gui_app.py
M gui_core.py
M requirements-minimal.txt
M requirements.txt
M "\346\265\201\347\250\213\345\233\276.md"
M "\346\265\201\347\250\213\345\233\276_WPS\346\226\207\346\234\254\346\240\274\345\274\217.txt"
M "\347\224\237\346\210\220WPS\346\265\201\347\250\213\345\233\276.py"
```
</details>
</tool-use>
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git commit -m "feat: 添加30分钟超时保护和手动发送返回键功能
- 新增30分钟超时保护机制:如果30分钟没有成功参与福袋,自动返回推荐页面并重新进入直播间
- 新增手动发送返回键按钮:在GUI界面添加手动发送返回键功能
- 修复代码中的缩进错误和残留代码块
- 完善README文档,添加新功能说明
- 更新流程图,添加30分钟超时保护流程
- 优化错误处理和日志记录"</summary>
```bash
git commit -m "feat: 添加30分钟超时保护和手动发送返回键功能
- 新增30分钟超时保护机制:如果30分钟没有成功参与福袋,自动返回推荐页面并重新进入直播间
- 新增手动发送返回键按钮:在GUI界面添加手动发送返回键功能
- 修复代码中的缩进错误和残留代码块
- 完善README文档,添加新功能说明
- 更新流程图,添加30分钟超时保护流程
- 优化错误处理和日志记录"
```
```
����λ�� C:\Users\12742\AppData\Local\Temp\ps-script-49930d59-a100-41c2-9eff-758dfa2cb96b.ps1:145 �ַ�: 122
+ ... ata\Local\Temp\ps-state-out-7dc9f5f9-342d-470a-8fa1-33306599790f.txt"
+ ~
�ַ���ȱ����ֹ��: "��
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
```
</details>
</tool-use>
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git push</summary>
```bash
git push
```
```
Everything up-to-date
```
</details>
</tool-use>
---
---
检查提交状态:
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git log --oneline -1</summary>
```bash
git log --oneline -1
```
```
fe0098c feat: Enhance 福袋 template matching functionality
```
</details>
</tool-use>
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git status</summary>
```bash
git status
```
```
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged &lt;file&gt;..." to unstage)
new file: .specstory/history/2025-12-21_17-43Z-lucky-bag-participation-rule.md
deleted: .specstory/history/2025-12-21_17-43Z-pylint-checks.md
modified: CLEANUP_REPORT.md
modified: DEBUG_IMAGE_SYSTEM.md
modified: DEPENDENCY_FIXES_REPORT.md
modified: DEPENDENCY_GUIDE.md
modified: FIXES_REPORT.md
modified: FUDAI_FINDER_OPTIMIZATION.md
modified: README.md
modified: "WPS\346\265\201\347\250\213\345\233\276\350\257\264\346\230\216.md"
modified: "WPS\350\257\246\347\273\206\346\265\201\347\250\213\345\233\276.txt"
modified: check_dependencies.py
modified: config.json
modified: douyin_detection.py
modified: douyin_flow_control.py
modified: douyin_fudai.py
modified: douyin_fudai_core.py
modified: douyin_fudai_finder.py
modified: gui_app.py
modified: gui_core.py
modified: requirements-minimal.txt
modified: requirements.txt
modified: "\346\265\201\347\250\213\345\233\276.md"
modified: "\346\265\201\347\250\213\345\233\276_WPS\346\226\207\346\234\254\346\240\274\345\274\217.txt"
modified: "\347\224\237\346\210\220WPS\346\265\201\347\250\213\345\233\276.py"
```
</details>
</tool-use>
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git commit -m "feat: 添加30分钟超时保护和手动发送返回键功能" -m "- 新增30分钟超时保护机制:如果30分钟没有成功参与福袋,自动返回推荐页面并重新进入直播间" -m "- 新增手动发送返回键按钮:在GUI界面添加手动发送返回键功能" -m "- 修复代码中的缩进错误和残留代码块" -m "- 完善README文档,添加新功能说明" -m "- 更新流程图,添加30分钟超时保护流程" -m "- 优化错误处理和日志记录"</summary>
```bash
git commit -m "feat: 添加30分钟超时保护和手动发送返回键功能" -m "- 新增30分钟超时保护机制:如果30分钟没有成功参与福袋,自动返回推荐页面并重新进入直播间" -m "- 新增手动发送返回键按钮:在GUI界面添加手动发送返回键功能" -m "- 修复代码中的缩进错误和残留代码块" -m "- 完善README文档,添加新功能说明" -m "- 更新流程图,添加30分钟超时保护流程" -m "- 优化错误处理和日志记录"
```
```
error: pathspec '-' did not match any file(s) known to git
error: pathspec '鏂板鎵嬪姩鍙戦€佽繑鍥為敭鎸夐挳锛氬湪GUI鐣岄潰娣诲姞鎵嬪姩鍙戦€佽繑鍥為敭鍔熻兘 -m -' did not match any file(s) known to git
error: pathspec '淇浠g爜涓殑缂╄繘閿欒鍜屾畫鐣欎唬鐮佸潡 -m -' did not match any file(s) known to git
error: pathspec '瀹屽杽README鏂囨。锛屾坊鍔犳柊鍔熻兘璇存槑 -m -' did not match any file(s) known to git
error: pathspec '鏇存柊娴佺▼鍥撅紝娣诲姞30鍒嗛挓瓒呮椂淇濇姢娴佺▼ -m -' did not match any file(s) known to git
error: pathspec '浼樺寲閿欒澶勭悊鍜屾棩蹇楄褰?' did not match any file(s) known to git
```
</details>
</tool-use>
---
---
使用单行提交信息重试:
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git commit -m "feat: 添加30分钟超时保护和手动发送返回键功能"</summary>
```bash
git commit -m "feat: 添加30分钟超时保护和手动发送返回键功能"
```
```
[main 97bda48] feat: 娣诲姞30鍒嗛挓瓒呮椂淇濇姢鍜屾墜鍔ㄥ彂閫佽繑鍥為敭鍔熻兘
25 files changed, 22400 insertions(+), 23900 deletions(-)
create mode 100644 .specstory/history/2025-12-21_17-43Z-lucky-bag-participation-rule.md
delete mode 100644 .specstory/history/2025-12-21_17-43Z-pylint-checks.md
```
</details>
</tool-use>
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git push origin main</summary>
```bash
git push origin main
```
```
To https://github.com/Zzzil/douyin_guaji-main.git
fe0098c..97bda48 main -&gt; main
```
</details>
</tool-use>
---
<tool-use data-tool-type="shell" data-tool-name="run_terminal_cmd">
<details><summary>Tool use: **run_terminal_cmd** • Run command: git log --oneline -1</summary>
```bash
git log --oneline -1
```
```
97bda48 feat: 娣诲姞30鍒嗛挓瓒呮椂淇濇姢鍜屾墜鍔ㄥ彂閫佽繑鍥為敭鍔熻兘
```
</details>
</tool-use>
---
---
已成功提交并推送到 GitHub。
## 提交总结
- 提交哈希: `97bda48`
- 提交信息: "feat: 添加30分钟超时保护和手动发送返回键功能"
- 修改文件: 25 个文件
- 变更统计:
- 新增: 22,400 行
- 删除: 23,900 行
## 主要更改内容
1. 新增功能:
- 30分钟超时保护机制
- 手动发送返回键按钮
2. 代码修复:
- 修复缩进错误
- 删除残留代码块
3. 文档更新:
- 完善 README.md
- 更新流程图文档
4. 其他文件:
- 更新配置文件
- 更新依赖文件
所有更改已推送到 GitHub 的 `main` 分支。
---
+1
View File
@@ -115,3 +115,4 @@ python cleanup_unused_files.py
+1
View File
@@ -213,3 +213,4 @@ YYYYMMDD_HHMMSS_操作类型_图片名_步骤_坐标_额外信息.png
+1
View File
@@ -182,5 +182,6 @@ python check_dependencies.py
+1
View File
@@ -161,5 +161,6 @@ douyin_guaji
+1
View File
@@ -102,5 +102,6 @@
+1
View File
@@ -316,3 +316,4 @@ douyin_fudai_finder.py
+1
View File
@@ -74,3 +74,4 @@ python 生成WPS流程图.py
+1
View File
@@ -86,5 +86,6 @@ else:
+1
View File
@@ -43,5 +43,6 @@ paddlepaddle>=2.5.0,<3.0.0
+1
View File
@@ -59,5 +59,6 @@ ttkbootstrap>=1.10.0
+1
View File
@@ -89,3 +89,4 @@
+1
View File
@@ -161,3 +161,4 @@ if __name__ == "__main__":