claude/wonderful-brattain-d1cfe0 #2

Merged
zzz merged 8 commits from claude/wonderful-brattain-d1cfe0 into main 2026-05-21 08:49:10 +08:00
120 changed files with 175 additions and 1388 deletions

No files matched your search

-1
View File
@@ -1 +0,0 @@
{"ts": 1765641063.2151546, "counters": {"fudai_seen": 1, "fudai_open_detail": 1, "fudai_click_attend": 1, "fudai_attend_ok": 1, "fudai_result_win": 1}, "fudai_last": {"content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0, "updated_ts": 1765641063.1966858}, "events": [{"ts": 1765641063.1946857, "type": "fudai_seen", "meta": {"content": "测试内容A", "countdown": "", "participants": null, "copies": null, "prize_value_yuan": null}}, {"ts": 1765641063.1966858, "type": "fudai_open_detail", "meta": {"content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0}}, {"ts": 1765641063.1966858, "type": "fudai_click_attend", "meta": {"content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0}}, {"ts": 1765641063.1966858, "type": "fudai_attend_ok", "meta": {"content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0}}, {"ts": 1765641063.1966858, "type": "fudai_result_win", "meta": {"content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0}}], "wins": [{"ts": 1765641063.1966858, "content": "测试内容A", "countdown": "10:00后开奖", "participants": 123, "copies": 5, "prize_value_yuan": 199.0}]}
-1
View File
@@ -1 +0,0 @@
21948
-1
View File
@@ -1 +0,0 @@
{"ts": 1765685532.6116447, "counters": {"fudai_open_detail": 74, "fudai_seen": 80, "fudai_skip_value_low": 28, "fudai_open_error": 8, "switch_room": 40, "switch_room_no_fudai": 28, "fudai_skip_countdown_short": 3, "switch_room_countdown": 3, "switch_room_value": 8, "fudai_click_attend": 2, "fudai_result_no_win": 2}, "fudai_last": {"content": "【粉丝专属】iPhone17手机256G颜色随机", "countdown": "14:29后开奖", "participants": 2132, "copies": 1, "prize_value_yuan": 5999.0, "updated_ts": 1765684579.3024325}, "events": [{"ts": 1765641806.1646142, "type": "fudai_open_detail", "meta": {"content": "", "countdown": "", "participants": null, "copies": null, "prize_value_yuan": null}}, {"ts": 1765641813.7004516, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "", "participants": null, "copies": null, "prize_value_yuan": null}}, {"ts": 1765641815.2687662, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "07:19后开奖", "participants": 32, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641819.8364112, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "07:19后开奖", "participants": 32, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641826.9612343, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "07:19后开奖", "participants": 32, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641829.2069504, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:07", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641833.980556, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:07", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641841.1970615, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "04:07", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641842.785327, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:50后开奖", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641848.7064586, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:50后开奖", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641857.2592785, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:50后开奖", "participants": 34, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641858.9027817, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:35后开奖", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641863.3506944, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:35后开奖", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641869.6957817, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:35后开奖", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641871.0666997, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:21", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641875.5607815, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:21", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641882.6100206, "type": "fudai_seen", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:21", "participants": 35, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641883.8911793, "type": "fudai_skip", "meta": {"reason": "value_low", "content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:09", "participants": 36, "copies": 1, "prize_value_yuan": 199.0}}, {"ts": 1765641888.1028545, "type": "fudai_open_detail", "meta": {"content": "【懒猫nono专属】海蓝之谜精萃水沁润15ml补水保湿...", "countdown": "06:09", "participants": 36, "copies": 1, "prize_value_yuan": 1Line truncated
+1 -1
View File
@@ -9,7 +9,7 @@ import sys
from pathlib import Path
ROOT_DIR = Path(__file__).resolve().parent
ROOT_DIR = Path(__file__).resolve().parent.parent
TARGET = ROOT_DIR / "gui" / "gui_app.py"
VENV_PYTHON = ROOT_DIR / ".venv" / "Scripts" / "python.exe"
+2 -2
View File
@@ -27,8 +27,8 @@ import argparse
from datetime import datetime, timedelta
from typing import Dict, Any
# 添加项目路径
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# 添加项目根到 sys.path(从 bin/ 目录运行时需要)
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from douyin.logging.douyin_logging import (
cleanup_old_logs,
+5 -2
View File
@@ -47,7 +47,10 @@ except Exception as e:
# 如果需要从外部工作树加载兼容模块,可显式设置 EXTERNAL_DOUYIN_FUDAI_DIR。
# 默认只使用当前仓库内置实现,避免绑定到某台机器的 Cursor worktree 路径。
_BASE_DIR = os.path.dirname(__file__)
_BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 确保项目根在 sys.path 中(脚本从 bin/ 目录启动时)
if _BASE_DIR not in sys.path:
sys.path.insert(0, _BASE_DIR)
_EXTERNAL_DOUYIN_FUDAI_DIR = os.environ.get("EXTERNAL_DOUYIN_FUDAI_DIR", "").strip()
@@ -628,7 +631,7 @@ def main(argv: list[str]) -> int:
if __name__ == "__main__":
try:
from version import print_version_banner
from douyin.core.version import print_version_banner
print_version_banner("run_cli")
except Exception:
@@ -9,7 +9,7 @@ import sys
from pathlib import Path
ROOT_DIR = Path(__file__).resolve().parent
ROOT_DIR = Path(__file__).resolve().parent.parent
TARGET = ROOT_DIR / "gui" / "webgui_launcher.py"
VENV_PYTHON = ROOT_DIR / ".venv" / "Scripts" / "python.exe"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,102 +0,0 @@
{
"needswitch": true,
"infinite_loop_enabled": true,
"wait_minutes": 5,
"y_pianyi": 0,
"contains_not_want": [
"首饰盒"
],
"min_prize_value_yuan": 200.0,
"min_participants": 0,
"max_participants": 0,
"skip_if_countdown_gt_seconds": 120,
"reset_after_swipes_enabled": true,
"reset_after_swipes": 50,
"auto_join_fansclub": true,
"fansclub_fail_action": "switch",
"lucky_draw_red_ratio_threshold": 0.8,
"high_value_fudai_enabled": true,
"high_value_fudai_threshold_yuan": 500.0,
"high_value_fudai_join_ahead_seconds": 300,
"high_value_fudai_max_swipe_back": 50,
"high_value_fudai_max_reservations": 9999,
"high_value_fudai_after_action": "continue",
"high_value_room_revisit_enabled": true,
"high_value_room_revisit_only_current_run": true,
"reservation_back_verify_enabled": true,
"reservation_back_swipe_delay": 0.5,
"record_room_title_mapping_enabled": true,
"reservation_preempt_min_value": 0.0,
"fudai_find_max_attempts": 99999,
"fudai_icon_retry_delay_seconds": 0.1,
"fudai_icon_max_wait_seconds": 8.5,
"fudai_click_wait_seconds": 1.7,
"switch_room_wait_after_stage_diag_seconds": 4.0,
"live_room_match_threshold": 0.6,
"fudai_quiet_hours_enabled": true,
"fudai_quiet_start_hour": 2,
"fudai_quiet_end_hour": 9,
"stage_diag_max_time": 5.0,
"stage_diag_max_step_time": 2.0,
"enable_ocr_mode1": false,
"fudai_template_match_enabled": false,
"fudai_template_match_threshold": 0.7,
"fudai_detail_template_threshold": 0.54,
"coupon_template_match_threshold": 0.4,
"attend_button_red_ratio_threshold": 0.25,
"fansclub_join_red_ratio_threshold": 0.25,
"skip_if_countdown_lt_seconds": 5,
"debug_captures": {
"enabled": true,
"auto_cleanup": true,
"keep_days": 3,
"max_files": 2000
},
"yanghao_enabled": false,
"yanghao_enable_actions": false,
"yanghao_recommend_duration_seconds": 206,
"yanghao_recommend_interval_seconds": 570,
"yanghao_like_prob": 1.0,
"yanghao_fav_prob": 0.85,
"yanghao_comment_prob": 1.0,
"yanghao_icon_roi_size": 240,
"yanghao_icon_match_threshold": 0.70,
"yanghao_step_screenshot": false,
"yanghao_like_roi_offset_x": 0,
"yanghao_like_roi_offset_y": -50,
"yanghao_fav_roi_offset_x": 40,
"yanghao_fav_roi_offset_y": 0,
"yanghao_like_icon_x": 0,
"yanghao_like_icon_y": -1,
"yanghao_fav_icon_x": -1,
"yanghao_fav_icon_y": 0,
"yanghao_like_template_path": "assets/like.png",
"yanghao_fav_template_path": "assets/fav.png",
"yanghao_after_dwell_swipe_direction": "up",
"yanghao_after_dwell_swipe_distance_px": 900,
"yanghao_comment_btn_x": 0,
"yanghao_comment_btn_y": -1,
"yanghao_comment_input_x": 0,
"yanghao_comment_input_y": 0,
"yanghao_comment_send_x": 0,
"yanghao_comment_send_y": -1,
"yanghao_comment_close_x": 0,
"yanghao_comment_close_y": 0,
"yanghao_comment_texts": [],
"yanghao_like_keywords": [],
"yanghao_fav_keywords": [],
"logging": {
"level": "INFO",
"file_path": "logs/unified.log",
"keep_days": 30,
"use_dated_logs": true,
"compress_logs": true,
"max_total_size_gb": 10.0,
"compress_after_days": 7,
"max_bytes": 104857600,
"backup_count": 10,
"enable_monitor": true,
"monitor_warning_mb": 500.0,
"monitor_critical_mb": 2000.0
}
}
-191
View File
@@ -1,191 +0,0 @@
00:13:44.963131 exec-cmd.c:244 trace: resolved executable dir: D:/Git/mingw64/bin
00:13:44.992482 git.c:463 trace: built-in: git ls-remote https://github.com/Zzzil/douyin_guaji-main.git
00:13:44.995001 run-command.c:659 trace: run_command: GIT_DIR=.git git remote-https https://github.com/Zzzil/douyin_guaji-main.git https://github.com/Zzzil/douyin_guaji-main.git
00:13:45.039988 exec-cmd.c:244 trace: resolved executable dir: D:/Git/mingw64/libexec/git-core
00:13:45.068497 git.c:749 trace: exec: git-remote-https https://github.com/Zzzil/douyin_guaji-main.git https://github.com/Zzzil/douyin_guaji-main.git
00:13:45.068497 run-command.c:659 trace: run_command: git-remote-https https://github.com/Zzzil/douyin_guaji-main.git https://github.com/Zzzil/douyin_guaji-main.git
00:13:45.113375 exec-cmd.c:244 trace: resolved executable dir: D:/Git/mingw64/libexec/git-core
00:13:45.158944 http.c:870 == Info: Couldn't find host github.com in the .netrc file; using defaults
00:13:45.182592 http.c:870 == Info: Trying 20.205.243.166:443...
00:13:45.395151 http.c:870 == Info: Connected to github.com (20.205.243.166) port 443
00:13:45.396159 http.c:870 == Info: ALPN: curl offers h2,http/1.1
00:13:45.396159 http.c:870 == Info: TLSv1.3 (OUT), TLS handshake, Client hello (1):
00:13:45.608239 http.c:870 == Info: TLSv1.3 (IN), TLS handshake, Server hello (2):
00:13:45.608239 http.c:870 == Info: TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
00:13:45.608239 http.c:870 == Info: TLSv1.3 (IN), TLS handshake, Certificate (11):
00:13:45.609245 http.c:870 == Info: TLSv1.3 (IN), TLS handshake, CERT verify (15):
00:13:45.609245 http.c:870 == Info: TLSv1.3 (IN), TLS handshake, Finished (20):
00:13:45.609245 http.c:870 == Info: TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
00:13:45.609245 http.c:870 == Info: TLSv1.3 (OUT), TLS handshake, Finished (20):
00:13:45.609245 http.c:870 == Info: SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
00:13:45.609245 http.c:870 == Info: ALPN: server accepted h2
00:13:45.609245 http.c:870 == Info: Server certificate:
00:13:45.609245 http.c:870 == Info: subject: CN=github.com
00:13:45.609245 http.c:870 == Info: start date: Feb 5 00:00:00 2025 GMT
00:13:45.609245 http.c:870 == Info: expire date: Feb 5 23:59:59 2026 GMT
00:13:45.609245 http.c:870 == Info: issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo ECC Domain Validation Secure Server CA
00:13:45.609245 http.c:870 == Info: SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
00:13:45.609245 http.c:870 == Info: using HTTP/2
00:13:45.610248 http.c:870 == Info: [HTTP/2] [1] OPENED stream for https://github.com/Zzzil/douyin_guaji-main.git/info/refs?service=git-upload-pack
00:13:45.610248 http.c:870 == Info: [HTTP/2] [1] [:method: GET]
00:13:45.610248 http.c:870 == Info: [HTTP/2] [1] [:scheme: https]
00:13:45.610248 http.c:870 == Info: [HTTP/2] [1] [:authority: github.com]
00:13:45.610248 http.c:870 == Info: [HTTP/2] [1] [:path: /Zzzil/douyin_guaji-main.git/info/refs?service=git-upload-pack]
00:13:45.610248 http.c:870 == Info: [HTTP/2] [1] [user-agent: git/2.43.0.windows.1]
00:13:45.610248 http.c:870 == Info: [HTTP/2] [1] [accept: */*]
00:13:45.610248 http.c:870 == Info: [HTTP/2] [1] [accept-encoding: deflate, gzip, br, zstd]
00:13:45.610248 http.c:870 == Info: [HTTP/2] [1] [pragma: no-cache]
00:13:45.610248 http.c:870 == Info: [HTTP/2] [1] [git-protocol: version=2]
00:13:45.610248 http.c:817 => Send header, 0000000227 bytes (0x000000e3)
00:13:45.610248 http.c:829 => Send header: GET /Zzzil/douyin_guaji-main.git/info/refs?service=git-upload-pack HTTP/2
00:13:45.610248 http.c:829 => Send header: Host: github.com
00:13:45.610248 http.c:829 => Send header: User-Agent: git/2.43.0.windows.1
00:13:45.610248 http.c:829 => Send header: Accept: */*
00:13:45.610248 http.c:829 => Send header: Accept-Encoding: deflate, gzip, br, zstd
00:13:45.610248 http.c:829 => Send header: Pragma: no-cache
00:13:45.610248 http.c:829 => Send header: Git-Protocol: version=2
00:13:45.610248 http.c:829 => Send header:
00:13:45.819399 http.c:870 == Info: TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
00:13:45.820411 http.c:870 == Info: TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
00:13:45.820411 http.c:870 == Info: old SSL session ID is stale, removing
00:13:46.487098 http.c:817 <= Recv header, 0000000013 bytes (0x0000000d)
00:13:46.487098 http.c:829 <= Recv header: HTTP/2 401
00:13:46.487098 http.c:817 <= Recv header, 0000000026 bytes (0x0000001a)
00:13:46.487098 http.c:829 <= Recv header: server: GitHub-Babel/3.0
00:13:46.487098 http.c:817 <= Recv header, 0000000054 bytes (0x00000036)
00:13:46.487098 http.c:829 <= Recv header: content-security-policy: default-src 'none'; sandbox
00:13:46.487098 http.c:817 <= Recv header, 0000000041 bytes (0x00000029)
00:13:46.487098 http.c:829 <= Recv header: content-type: text/plain; charset=UTF-8
00:13:46.487098 http.c:817 <= Recv header, 0000000040 bytes (0x00000028)
00:13:46.487098 http.c:829 <= Recv header: www-authenticate: Basic realm="GitHub"
00:13:46.487098 http.c:817 <= Recv header, 0000000020 bytes (0x00000014)
00:13:46.487098 http.c:829 <= Recv header: content-length: 21
00:13:46.487098 http.c:817 <= Recv header, 0000000037 bytes (0x00000025)
00:13:46.487098 http.c:829 <= Recv header: date: Fri, 02 Jan 2026 16:13:56 GMT
00:13:46.487098 http.c:817 <= Recv header, 0000000023 bytes (0x00000017)
00:13:46.487098 http.c:829 <= Recv header: x-frame-options: DENY
00:13:46.487098 http.c:817 <= Recv header, 0000000073 bytes (0x00000049)
00:13:46.487098 http.c:829 <= Recv header: strict-transport-security: max-age=31536000; includeSubDomains; preload
00:13:46.487098 http.c:817 <= Recv header, 0000000058 bytes (0x0000003a)
00:13:46.487098 http.c:829 <= Recv header: x-github-request-id: 6140:1AF3F5:EAAEE6:107B593:6957EEC4
00:13:46.487098 http.c:817 <= Recv header, 0000000002 bytes (0x00000002)
00:13:46.487098 http.c:829 <= Recv header:
00:13:46.487098 http.c:870 == Info: Connection #0 to host github.com left intact
00:13:46.487098 run-command.c:659 trace: run_command: 'git credential-manager get'
00:13:46.595677 exec-cmd.c:244 trace: resolved executable dir: D:/Git/mingw64/libexec/git-core
00:13:46.620240 git.c:749 trace: exec: git-credential-manager get
00:13:46.620240 run-command.c:659 trace: run_command: git-credential-manager get
00:13:46.758400 exec-cmd.c:244 trace: resolved executable dir: D:/Git/mingw64/libexec/git-core
00:13:46.781659 git.c:463 trace: built-in: git config --null --list
00:13:46.953492 http.c:870 == Info: Found bundle for host: 0x15eb41eb110 [can multiplex]
00:13:46.953492 http.c:870 == Info: Re-using existing connection with host github.com
00:13:46.953492 http.c:870 == Info: Server auth using Basic with user 'Zzzil'
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] OPENED stream for https://github.com/Zzzil/douyin_guaji-main.git/info/refs?service=git-upload-pack
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] [:method: GET]
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] [:scheme: https]
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] [:authority: github.com]
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] [:path: /Zzzil/douyin_guaji-main.git/info/refs?service=git-upload-pack]
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] [authorization: Basic <redacted>]
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] [user-agent: git/2.43.0.windows.1]
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] [accept: */*]
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] [accept-encoding: deflate, gzip, br, zstd]
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] [pragma: no-cache]
00:13:46.953492 http.c:870 == Info: [HTTP/2] [3] [git-protocol: version=2]
00:13:46.953492 http.c:817 => Send header, 0000000314 bytes (0x0000013a)
00:13:46.953492 http.c:829 => Send header: GET /Zzzil/douyin_guaji-main.git/info/refs?service=git-upload-pack HTTP/2
00:13:46.953492 http.c:829 => Send header: Host: github.com
00:13:46.953492 http.c:829 => Send header: Authorization: Basic <redacted>
00:13:46.953492 http.c:829 => Send header: User-Agent: git/2.43.0.windows.1
00:13:46.953492 http.c:829 => Send header: Accept: */*
00:13:46.953492 http.c:829 => Send header: Accept-Encoding: deflate, gzip, br, zstd
00:13:46.953492 http.c:829 => Send header: Pragma: no-cache
00:13:46.953492 http.c:829 => Send header: Git-Protocol: version=2
00:13:46.953492 http.c:829 => Send header:
00:13:47.425703 http.c:817 <= Recv header, 0000000013 bytes (0x0000000d)
00:13:47.425703 http.c:829 <= Recv header: HTTP/2 200
00:13:47.425703 http.c:817 <= Recv header, 0000000026 bytes (0x0000001a)
00:13:47.425703 http.c:829 <= Recv header: server: GitHub-Babel/3.0
00:13:47.425703 http.c:817 <= Recv header, 0000000059 bytes (0x0000003b)
00:13:47.425703 http.c:829 <= Recv header: content-type: application/x-git-upload-pack-advertisement
00:13:47.425703 http.c:817 <= Recv header, 0000000054 bytes (0x00000036)
00:13:47.425703 http.c:829 <= Recv header: content-security-policy: default-src 'none'; sandbox
00:13:47.425703 http.c:817 <= Recv header, 0000000040 bytes (0x00000028)
00:13:47.425703 http.c:829 <= Recv header: expires: Fri, 01 Jan 1980 00:00:00 GMT
00:13:47.425703 http.c:817 <= Recv header, 0000000018 bytes (0x00000012)
00:13:47.425703 http.c:829 <= Recv header: pragma: no-cache
00:13:47.425703 http.c:817 <= Recv header, 0000000053 bytes (0x00000035)
00:13:47.425703 http.c:829 <= Recv header: cache-control: no-cache, max-age=0, must-revalidate
00:13:47.425703 http.c:817 <= Recv header, 0000000023 bytes (0x00000017)
00:13:47.425703 http.c:829 <= Recv header: vary: Accept-Encoding
00:13:47.425703 http.c:817 <= Recv header, 0000000037 bytes (0x00000025)
00:13:47.425703 http.c:829 <= Recv header: date: Fri, 02 Jan 2026 16:13:57 GMT
00:13:47.425703 http.c:817 <= Recv header, 0000000023 bytes (0x00000017)
00:13:47.425703 http.c:829 <= Recv header: x-frame-options: DENY
00:13:47.425703 http.c:817 <= Recv header, 0000000073 bytes (0x00000049)
00:13:47.425703 http.c:829 <= Recv header: strict-transport-security: max-age=31536000; includeSubDomains; preload
00:13:47.425703 http.c:817 <= Recv header, 0000000058 bytes (0x0000003a)
00:13:47.425703 http.c:829 <= Recv header: x-github-request-id: 6140:1AF3F5:EAB00F:107B6CE:6957EEC4
00:13:47.425703 http.c:817 <= Recv header, 0000000002 bytes (0x00000002)
00:13:47.425703 http.c:829 <= Recv header:
00:13:47.425703 http.c:870 == Info: Connection #0 to host github.com left intact
00:13:47.425703 run-command.c:659 trace: run_command: 'git credential-manager store'
00:13:47.524651 exec-cmd.c:244 trace: resolved executable dir: D:/Git/mingw64/libexec/git-core
00:13:47.546842 git.c:749 trace: exec: git-credential-manager store
00:13:47.546842 run-command.c:659 trace: run_command: git-credential-manager store
00:13:47.661941 exec-cmd.c:244 trace: resolved executable dir: D:/Git/mingw64/libexec/git-core
00:13:47.685091 git.c:463 trace: built-in: git config --null --list
00:13:47.828028 http.c:870 == Info: Found bundle for host: 0x15eb41eb110 [can multiplex]
00:13:47.828028 http.c:870 == Info: Re-using existing connection with host github.com
00:13:47.828028 http.c:870 == Info: Server auth using Basic with user 'Zzzil'
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] OPENED stream for https://github.com/Zzzil/douyin_guaji-main.git/git-upload-pack
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [:method: POST]
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [:scheme: https]
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [:authority: github.com]
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [:path: /Zzzil/douyin_guaji-main.git/git-upload-pack]
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [authorization: Basic <redacted>]
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [user-agent: git/2.43.0.windows.1]
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [accept-encoding: deflate, gzip, br, zstd]
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [content-type: application/x-git-upload-pack-request]
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [accept: application/x-git-upload-pack-result]
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [git-protocol: version=2]
00:13:47.828028 http.c:870 == Info: [HTTP/2] [5] [content-length: 112]
00:13:47.828028 http.c:817 => Send header, 0000000386 bytes (0x00000182)
00:13:47.828028 http.c:829 => Send header: POST /Zzzil/douyin_guaji-main.git/git-upload-pack HTTP/2
00:13:47.828028 http.c:829 => Send header: Host: github.com
00:13:47.828028 http.c:829 => Send header: Authorization: Basic <redacted>
00:13:47.828028 http.c:829 => Send header: User-Agent: git/2.43.0.windows.1
00:13:47.828028 http.c:829 => Send header: Accept-Encoding: deflate, gzip, br, zstd
00:13:47.828028 http.c:829 => Send header: Content-Type: application/x-git-upload-pack-request
00:13:47.828028 http.c:829 => Send header: Accept: application/x-git-upload-pack-result
00:13:47.828028 http.c:829 => Send header: Git-Protocol: version=2
00:13:47.828028 http.c:829 => Send header: Content-Length: 112
00:13:47.828028 http.c:829 => Send header:
00:13:48.291956 http.c:817 <= Recv header, 0000000013 bytes (0x0000000d)
00:13:48.291956 http.c:829 <= Recv header: HTTP/2 200
00:13:48.291956 http.c:817 <= Recv header, 0000000026 bytes (0x0000001a)
00:13:48.291956 http.c:829 <= Recv header: server: GitHub-Babel/3.0
00:13:48.291956 http.c:817 <= Recv header, 0000000052 bytes (0x00000034)
00:13:48.291956 http.c:829 <= Recv header: content-type: application/x-git-upload-pack-result
00:13:48.291956 http.c:817 <= Recv header, 0000000054 bytes (0x00000036)
00:13:48.291956 http.c:829 <= Recv header: content-security-policy: default-src 'none'; sandbox
00:13:48.291956 http.c:817 <= Recv header, 0000000040 bytes (0x00000028)
00:13:48.291956 http.c:829 <= Recv header: expires: Fri, 01 Jan 1980 00:00:00 GMT
00:13:48.291956 http.c:817 <= Recv header, 0000000018 bytes (0x00000012)
00:13:48.291956 http.c:829 <= Recv header: pragma: no-cache
00:13:48.291956 http.c:817 <= Recv header, 0000000053 bytes (0x00000035)
00:13:48.291956 http.c:829 <= Recv header: cache-control: no-cache, max-age=0, must-revalidate
00:13:48.291956 http.c:817 <= Recv header, 0000000023 bytes (0x00000017)
00:13:48.291956 http.c:829 <= Recv header: vary: Accept-Encoding
00:13:48.291956 http.c:817 <= Recv header, 0000000037 bytes (0x00000025)
00:13:48.291956 http.c:829 <= Recv header: date: Fri, 02 Jan 2026 16:13:58 GMT
00:13:48.291956 http.c:817 <= Recv header, 0000000023 bytes (0x00000017)
00:13:48.291956 http.c:829 <= Recv header: x-frame-options: DENY
00:13:48.291956 http.c:817 <= Recv header, 0000000073 bytes (0x00000049)
00:13:48.291956 http.c:829 <= Recv header: strict-transport-security: max-age=31536000; includeSubDomains; preload
00:13:48.291956 http.c:817 <= Recv header, 0000000058 bytes (0x0000003a)
00:13:48.291956 http.c:829 <= Recv header: x-github-request-id: 6140:1AF3F5:EAB0D6:107B7A3:6957EEC5
00:13:48.291956 http.c:817 <= Recv header, 0000000002 bytes (0x00000002)
00:13:48.291956 http.c:829 <= Recv header:
00:13:48.291956 http.c:870 == Info: Connection #0 to host github.com left intact
a079149c80c390dcbcb9d40cba611bc7e7b7be2d HEAD
a079149c80c390dcbcb9d40cba611bc7e7b7be2d refs/heads/main
-500
View File
@@ -1,500 +0,0 @@
日志筛选结果
文件: C:\Users\12742\Desktop\douyin_guaji-main\logs\actions.log
关键字: 参与成功
总行数: 8848
匹配行数: 493
==================================================
行166: [2026-01-12 18:01:59.850] [参与] basic_join_decision:参与成功
行177: [2026-01-12 18:02:21.698] [参与] 参与成功,但倒计时已过期,不设置等待标志
行179: [2026-01-12 18:02:21.878] [参与] basic_join_decision:参与成功
行190: [2026-01-12 18:02:44.472] [参与] 参与成功,但倒计时已过期,不设置等待标志
行192: [2026-01-12 18:02:44.654] [参与] basic_join_decision:参与成功
行203: [2026-01-12 18:03:07.069] [参与] 参与成功,但倒计时已过期,不设置等待标志
行205: [2026-01-12 18:03:07.262] [参与] basic_join_decision:参与成功
行216: [2026-01-12 18:03:29.044] [参与] 参与成功,但倒计时已过期,不设置等待标志
行218: [2026-01-12 18:03:29.249] [参与] basic_join_decision:参与成功
行229: [2026-01-12 18:03:51.551] [参与] 参与成功,但倒计时已过期,不设置等待标志
行231: [2026-01-12 18:03:51.723] [参与] basic_join_decision:参与成功
行241: [2026-01-12 18:04:14.215] [参与] 参与成功,设置等待开奖标志
行243: [2026-01-12 18:04:14.401] [参与] basic_join_decision:参与成功
行245: [2026-01-12 18:04:14.407] [参与] 参与成功,设置等待开奖标志,停止其他行为
行393: [2026-01-12 18:10:22.584] [参与] basic_join_decision:参与成功
行448: [2026-01-12 18:13:12.062] [参与] basic_join_decision:参与成功
行459: [2026-01-12 18:13:32.708] [参与] 参与成功,但倒计时已过期,不设置等待标志
行461: [2026-01-12 18:13:32.897] [参与] basic_join_decision:参与成功
行472: [2026-01-12 18:13:53.764] [参与] 参与成功,但倒计时已过期,不设置等待标志
行474: [2026-01-12 18:13:53.968] [参与] basic_join_decision:参与成功
行484: [2026-01-12 18:14:15.457] [参与] 参与成功,设置等待开奖标志
行486: [2026-01-12 18:14:15.651] [参与] basic_join_decision:参与成功
行488: [2026-01-12 18:14:15.655] [参与] 参与成功,设置等待开奖标志,停止其他行为
行635: [2026-01-12 18:19:58.029] [参与] basic_join_decision:参与成功
行646: [2026-01-12 18:20:08.345] [参与] 参与成功,但倒计时已过期,不设置等待标志
行648: [2026-01-12 18:20:08.531] [参与] basic_join_decision:参与成功
行659: [2026-01-12 18:20:19.263] [参与] 参与成功,但倒计时已过期,不设置等待标志
行661: [2026-01-12 18:20:19.473] [参与] basic_join_decision:参与成功
行672: [2026-01-12 18:20:29.542] [参与] 参与成功,但倒计时已过期,不设置等待标志
行674: [2026-01-12 18:20:29.750] [参与] basic_join_decision:参与成功
行685: [2026-01-12 18:20:40.138] [参与] 参与成功,但倒计时已过期,不设置等待标志
行687: [2026-01-12 18:20:40.362] [参与] basic_join_decision:参与成功
行698: [2026-01-12 18:20:51.078] [参与] 参与成功,但倒计时已过期,不设置等待标志
行700: [2026-01-12 18:20:51.266] [参与] basic_join_decision:参与成功
行711: [2026-01-12 18:21:01.449] [参与] 参与成功,但倒计时已过期,不设置等待标志
行713: [2026-01-12 18:21:01.640] [参与] basic_join_decision:参与成功
行724: [2026-01-12 18:21:12.378] [参与] 参与成功,但倒计时已过期,不设置等待标志
行726: [2026-01-12 18:21:12.585] [参与] basic_join_decision:参与成功
行737: [2026-01-12 18:21:22.874] [参与] 参与成功,但倒计时已过期,不设置等待标志
行739: [2026-01-12 18:21:23.079] [参与] basic_join_decision:参与成功
行750: [2026-01-12 18:21:33.593] [参与] 参与成功,但倒计时已过期,不设置等待标志
行752: [2026-01-12 18:21:33.765] [参与] basic_join_decision:参与成功
行763: [2026-01-12 18:21:43.726] [参与] 参与成功,但倒计时已过期,不设置等待标志
行765: [2026-01-12 18:21:43.938] [参与] basic_join_decision:参与成功
行776: [2026-01-12 18:21:53.868] [参与] 参与成功,但倒计时已过期,不设置等待标志
行778: [2026-01-12 18:21:54.054] [参与] basic_join_decision:参与成功
行789: [2026-01-12 18:22:04.201] [参与] 参与成功,但倒计时已过期,不设置等待标志
行791: [2026-01-12 18:22:04.395] [参与] basic_join_decision:参与成功
行802: [2026-01-12 18:22:14.803] [参与] 参与成功,但倒计时已过期,不设置等待标志
行804: [2026-01-12 18:22:15.002] [参与] basic_join_decision:参与成功
行815: [2026-01-12 18:22:25.368] [参与] 参与成功,但倒计时已过期,不设置等待标志
行817: [2026-01-12 18:22:25.557] [参与] basic_join_decision:参与成功
行828: [2026-01-12 18:22:35.783] [参与] 参与成功,但倒计时已过期,不设置等待标志
行830: [2026-01-12 18:22:35.986] [参与] basic_join_decision:参与成功
行841: [2026-01-12 18:22:46.300] [参与] 参与成功,但倒计时已过期,不设置等待标志
行843: [2026-01-12 18:22:46.484] [参与] basic_join_decision:参与成功
行854: [2026-01-12 18:22:56.576] [参与] 参与成功,但倒计时已过期,不设置等待标志
行856: [2026-01-12 18:22:56.767] [参与] basic_join_decision:参与成功
行867: [2026-01-12 18:23:07.053] [参与] 参与成功,但倒计时已过期,不设置等待标志
行869: [2026-01-12 18:23:07.241] [参与] basic_join_decision:参与成功
行880: [2026-01-12 18:23:18.387] [参与] 参与成功,但倒计时已过期,不设置等待标志
行882: [2026-01-12 18:23:18.587] [参与] basic_join_decision:参与成功
行893: [2026-01-12 18:23:29.624] [参与] 参与成功,但倒计时已过期,不设置等待标志
行895: [2026-01-12 18:23:29.802] [参与] basic_join_decision:参与成功
行1019: [2026-01-12 18:29:23.778] [参与] 参与成功,设置等待开奖标志
行1021: [2026-01-12 18:29:23.978] [参与] basic_join_decision:参与成功
行1023: [2026-01-12 18:29:23.983] [参与] 参与成功,设置等待开奖标志,停止其他行为
行1148: [2026-01-12 18:34:49.189] [参与] basic_join_decision:参与成功
行1156: [2026-01-12 18:34:55.656] [参与] basic_join_decision:参与成功
行1161: [2026-01-12 18:34:59.740] [参与] 第二次打开:直接点击参与成功
行1420: [2026-01-12 18:40:10.763] [参与] 参与成功,但倒计时已过期,不设置等待标志
行1422: [2026-01-12 18:40:10.956] [参与] basic_join_decision:参与成功
行1517: [2026-01-12 18:44:02.503] [参与] basic_join_decision:参与成功
行1802: [2026-01-12 18:58:34.025] [参与] basic_join_decision:参与成功
行1813: [2026-01-12 18:58:44.901] [参与] 参与成功,但倒计时已过期,不设置等待标志
行1815: [2026-01-12 18:58:45.080] [参与] basic_join_decision:参与成功
行1826: [2026-01-12 18:58:55.490] [参与] 参与成功,但倒计时已过期,不设置等待标志
行1828: [2026-01-12 18:58:55.671] [参与] basic_join_decision:参与成功
行1839: [2026-01-12 18:59:05.890] [参与] 参与成功,但倒计时已过期,不设置等待标志
行1841: [2026-01-12 18:59:06.099] [参与] basic_join_decision:参与成功
行1852: [2026-01-12 18:59:16.796] [参与] 参与成功,但倒计时已过期,不设置等待标志
行1854: [2026-01-12 18:59:16.989] [参与] basic_join_decision:参与成功
行1864: [2026-01-12 18:59:27.930] [参与] 参与成功,设置等待开奖标志
行1866: [2026-01-12 18:59:28.131] [参与] basic_join_decision:参与成功
行1868: [2026-01-12 18:59:28.137] [参与] 参与成功,设置等待开奖标志,停止其他行为
行1932: [2026-01-12 19:02:03.555] [参与] basic_join_decision:参与成功
行1942: [2026-01-12 19:02:11.050] [参与] 参与成功,设置等待开奖标志
行1944: [2026-01-12 19:02:11.258] [参与] basic_join_decision:参与成功
行1946: [2026-01-12 19:02:11.261] [参与] 参与成功,设置等待开奖标志,停止其他行为
行1966: [2026-01-12 19:02:53.466] [参与] basic_join_decision:参与成功
行1976: [2026-01-12 19:03:01.551] [参与] 参与成功,设置等待开奖标志
行1978: [2026-01-12 19:03:01.786] [参与] basic_join_decision:参与成功
行1980: [2026-01-12 19:03:01.788] [参与] 参与成功,设置等待开奖标志,停止其他行为
行2101: [2026-01-12 19:09:03.191] [参与] basic_join_decision:参与成功
行2111: [2026-01-12 19:09:10.748] [参与] 参与成功,设置等待开奖标志
行2113: [2026-01-12 19:09:10.954] [参与] basic_join_decision:参与成功
行2115: [2026-01-12 19:09:10.956] [参与] 参与成功,设置等待开奖标志,停止其他行为
行2155: [2026-01-12 19:11:13.156] [参与] basic_join_decision:参与成功
行2198: [2026-01-12 19:13:17.244] [参与] basic_join_decision:参与成功
行2208: [2026-01-12 19:13:27.563] [参与] 参与成功,设置等待开奖标志
行2210: [2026-01-12 19:13:27.752] [参与] basic_join_decision:参与成功
行2212: [2026-01-12 19:13:27.757] [参与] 参与成功,设置等待开奖标志,停止其他行为
行2272: [2026-01-12 19:15:46.229] [参与] basic_join_decision:参与成功
行2286: [2026-01-12 19:16:14.812] [参与] 参与成功,设置等待开奖标志
行2288: [2026-01-12 19:16:15.024] [参与] basic_join_decision:参与成功
行2290: [2026-01-12 19:16:15.029] [参与] 参与成功,设置等待开奖标志,停止其他行为
行2356: [2026-01-12 19:19:08.639] [参与] basic_join_decision:参与成功
行2366: [2026-01-12 19:19:22.009] [参与] 参与成功,设置等待开奖标志
行2368: [2026-01-12 19:19:22.222] [参与] basic_join_decision:参与成功
行2370: [2026-01-12 19:19:22.226] [参与] 参与成功,设置等待开奖标志,停止其他行为
行2447: [2026-01-12 19:22:49.371] [参与] basic_join_decision:参与成功
行2458: [2026-01-12 19:23:00.047] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2460: [2026-01-12 19:23:00.235] [参与] basic_join_decision:参与成功
行2471: [2026-01-12 19:23:10.839] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2473: [2026-01-12 19:23:11.024] [参与] basic_join_decision:参与成功
行2484: [2026-01-12 19:23:22.196] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2486: [2026-01-12 19:23:22.396] [参与] basic_join_decision:参与成功
行2497: [2026-01-12 19:23:33.018] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2499: [2026-01-12 19:23:33.225] [参与] basic_join_decision:参与成功
行2510: [2026-01-12 19:23:43.803] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2512: [2026-01-12 19:23:44.000] [参与] basic_join_decision:参与成功
行2523: [2026-01-12 19:23:54.585] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2525: [2026-01-12 19:23:54.779] [参与] basic_join_decision:参与成功
行2536: [2026-01-12 19:24:05.853] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2538: [2026-01-12 19:24:06.051] [参与] basic_join_decision:参与成功
行2549: [2026-01-12 19:24:16.859] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2551: [2026-01-12 19:24:17.049] [参与] basic_join_decision:参与成功
行2562: [2026-01-12 19:24:28.013] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2564: [2026-01-12 19:24:28.203] [参与] basic_join_decision:参与成功
行2575: [2026-01-12 19:24:38.749] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2577: [2026-01-12 19:24:38.947] [参与] basic_join_decision:参与成功
行2588: [2026-01-12 19:24:50.044] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2590: [2026-01-12 19:24:50.231] [参与] basic_join_decision:参与成功
行2601: [2026-01-12 19:25:01.850] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2603: [2026-01-12 19:25:02.070] [参与] basic_join_decision:参与成功
行2626: [2026-01-12 19:25:49.435] [参与] basic_join_decision:参与成功
行2636: [2026-01-12 19:26:06.702] [参与] 参与成功,设置等待开奖标志
行2638: [2026-01-12 19:26:06.930] [参与] basic_join_decision:参与成功
行2640: [2026-01-12 19:26:06.933] [参与] 参与成功,设置等待开奖标志,停止其他行为
行2669: [2026-01-12 19:27:15.402] [参与] basic_join_decision:参与成功
行2680: [2026-01-12 19:27:25.758] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2682: [2026-01-12 19:27:25.962] [参与] basic_join_decision:参与成功
行2693: [2026-01-12 19:27:36.580] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2695: [2026-01-12 19:27:36.782] [参与] basic_join_decision:参与成功
行2706: [2026-01-12 19:27:47.267] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2708: [2026-01-12 19:27:47.472] [参与] basic_join_decision:参与成功
行2719: [2026-01-12 19:27:57.624] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2721: [2026-01-12 19:27:57.835] [参与] basic_join_decision:参与成功
行2732: [2026-01-12 19:28:08.174] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2734: [2026-01-12 19:28:08.363] [参与] basic_join_decision:参与成功
行2745: [2026-01-12 19:28:18.761] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2747: [2026-01-12 19:28:18.958] [参与] basic_join_decision:参与成功
行2758: [2026-01-12 19:28:29.277] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2760: [2026-01-12 19:28:29.468] [参与] basic_join_decision:参与成功
行2771: [2026-01-12 19:28:39.896] [参与] 参与成功,但倒计时已过期,不设置等待标志
行2773: [2026-01-12 19:28:40.100] [参与] basic_join_decision:参与成功
行2870: [2026-01-12 19:32:20.178] [参与] basic_join_decision:参与成功
行2949: [2026-01-12 19:35:29.126] [参与] basic_join_decision:参与成功
行2959: [2026-01-12 19:35:46.750] [参与] 参与成功,设置等待开奖标志
行2961: [2026-01-12 19:35:46.979] [参与] basic_join_decision:参与成功
行2963: [2026-01-12 19:35:46.983] [参与] 参与成功,设置等待开奖标志,停止其他行为
行3027: [2026-01-12 19:39:01.314] [参与] basic_join_decision:参与成功
行3038: [2026-01-12 19:39:11.670] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3040: [2026-01-12 19:39:11.887] [参与] basic_join_decision:参与成功
行3051: [2026-01-12 19:39:22.105] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3053: [2026-01-12 19:39:22.311] [参与] basic_join_decision:参与成功
行3064: [2026-01-12 19:39:32.871] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3066: [2026-01-12 19:39:33.049] [参与] basic_join_decision:参与成功
行3077: [2026-01-12 19:39:44.100] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3079: [2026-01-12 19:39:44.300] [参与] basic_join_decision:参与成功
行3089: [2026-01-12 19:39:54.822] [参与] 参与成功,设置等待开奖标志
行3091: [2026-01-12 19:39:55.014] [参与] basic_join_decision:参与成功
行3093: [2026-01-12 19:39:55.020] [参与] 参与成功,设置等待开奖标志,停止其他行为
行3190: [2026-01-12 19:44:25.663] [参与] basic_join_decision:参与成功
行3200: [2026-01-12 19:44:32.599] [参与] 参与成功,设置等待开奖标志
行3202: [2026-01-12 19:44:32.821] [参与] basic_join_decision:参与成功
行3204: [2026-01-12 19:44:32.823] [参与] 参与成功,设置等待开奖标志,停止其他行为
行3297: [2026-01-12 19:47:40.716] [参与] basic_join_decision:参与成功
行3307: [2026-01-12 19:47:48.146] [参与] 参与成功,设置等待开奖标志
行3309: [2026-01-12 19:47:48.331] [参与] basic_join_decision:参与成功
行3311: [2026-01-12 19:47:48.334] [参与] 参与成功,设置等待开奖标志,停止其他行为
行3396: [2026-01-12 19:51:48.782] [参与] basic_join_decision:参与成功
行3407: [2026-01-12 19:51:59.749] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3409: [2026-01-12 19:51:59.931] [参与] basic_join_decision:参与成功
行3420: [2026-01-12 19:52:10.869] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3422: [2026-01-12 19:52:11.079] [参与] basic_join_decision:参与成功
行3433: [2026-01-12 19:52:22.239] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3435: [2026-01-12 19:52:22.439] [参与] basic_join_decision:参与成功
行3446: [2026-01-12 19:52:33.736] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3448: [2026-01-12 19:52:33.931] [参与] basic_join_decision:参与成功
行3459: [2026-01-12 19:52:45.036] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3461: [2026-01-12 19:52:45.239] [参与] basic_join_decision:参与成功
行3472: [2026-01-12 19:52:56.380] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3474: [2026-01-12 19:52:56.566] [参与] basic_join_decision:参与成功
行3485: [2026-01-12 19:53:07.764] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3487: [2026-01-12 19:53:07.950] [参与] basic_join_decision:参与成功
行3498: [2026-01-12 19:53:19.087] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3500: [2026-01-12 19:53:19.275] [参与] basic_join_decision:参与成功
行3511: [2026-01-12 19:53:30.566] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3513: [2026-01-12 19:53:30.771] [参与] basic_join_decision:参与成功
行3524: [2026-01-12 19:53:42.002] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3526: [2026-01-12 19:53:42.190] [参与] basic_join_decision:参与成功
行3537: [2026-01-12 19:53:53.421] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3539: [2026-01-12 19:53:53.605] [参与] basic_join_decision:参与成功
行3550: [2026-01-12 19:54:04.833] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3552: [2026-01-12 19:54:05.027] [参与] basic_join_decision:参与成功
行3563: [2026-01-12 19:54:16.153] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3565: [2026-01-12 19:54:16.342] [参与] basic_join_decision:参与成功
行3576: [2026-01-12 19:54:27.050] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3578: [2026-01-12 19:54:27.250] [参与] basic_join_decision:参与成功
行3589: [2026-01-12 19:54:38.224] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3591: [2026-01-12 19:54:38.426] [参与] basic_join_decision:参与成功
行3602: [2026-01-12 19:54:49.490] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3604: [2026-01-12 19:54:49.711] [参与] basic_join_decision:参与成功
行3615: [2026-01-12 19:55:00.732] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3617: [2026-01-12 19:55:00.937] [参与] basic_join_decision:参与成功
行3628: [2026-01-12 19:55:11.990] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3630: [2026-01-12 19:55:12.176] [参与] basic_join_decision:参与成功
行3641: [2026-01-12 19:55:23.026] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3643: [2026-01-12 19:55:23.227] [参与] basic_join_decision:参与成功
行3785: [2026-01-12 20:01:53.769] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3787: [2026-01-12 20:01:53.980] [参与] basic_join_decision:参与成功
行3798: [2026-01-12 20:02:05.082] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3800: [2026-01-12 20:02:05.299] [参与] basic_join_decision:参与成功
行3811: [2026-01-12 20:02:15.936] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3813: [2026-01-12 20:02:16.136] [参与] basic_join_decision:参与成功
行3824: [2026-01-12 20:02:27.770] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3826: [2026-01-12 20:02:27.983] [参与] basic_join_decision:参与成功
行3837: [2026-01-12 20:02:38.662] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3839: [2026-01-12 20:02:38.879] [参与] basic_join_decision:参与成功
行3850: [2026-01-12 20:02:50.082] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3852: [2026-01-12 20:02:50.278] [参与] basic_join_decision:参与成功
行3971: [2026-01-12 20:07:22.107] [参与] basic_join_decision:参与成功
行3981: [2026-01-12 20:07:33.559] [参与] basic_join_decision:参与成功
行3992: [2026-01-12 20:07:44.935] [参与] 参与成功,但倒计时已过期,不设置等待标志
行3994: [2026-01-12 20:07:45.132] [参与] basic_join_decision:参与成功
行4005: [2026-01-12 20:07:56.666] [参与] 参与成功,但倒计时已过期,不设置等待标志
行4007: [2026-01-12 20:07:56.894] [参与] basic_join_decision:参与成功
行4101: [2026-01-12 20:11:20.870] [参与] basic_join_decision:参与成功
行4333: [2026-01-12 20:21:09.808] [参与] basic_join_decision:参与成功
行4343: [2026-01-12 20:21:16.831] [参与] 参与成功,设置等待开奖标志
行4345: [2026-01-12 20:21:17.043] [参与] basic_join_decision:参与成功
行4347: [2026-01-12 20:21:17.047] [参与] 参与成功,设置等待开奖标志,停止其他行为
行4448: [2026-01-12 20:26:27.313] [参与] basic_join_decision:参与成功
行4459: [2026-01-12 20:26:37.610] [参与] 参与成功,但倒计时已过期,不设置等待标志
行4461: [2026-01-12 20:26:37.808] [参与] basic_join_decision:参与成功
行4506: [2026-01-12 20:28:45.743] [参与] 参与成功,设置等待开奖标志
行4508: [2026-01-12 20:28:45.968] [参与] basic_join_decision:参与成功
行4510: [2026-01-12 20:28:45.973] [参与] 参与成功,设置等待开奖标志,停止其他行为
行4651: [2026-01-12 20:34:20.830] [参与] basic_join_decision:参与成功
行4757: [2026-01-12 20:38:07.195] [参与] basic_join_decision:参与成功
行4833: [2026-01-12 20:41:57.875] [参与] basic_join_decision:参与成功
行4844: [2026-01-12 20:42:19.655] [参与] 参与成功,但倒计时已过期,不设置等待标志
行4846: [2026-01-12 20:42:19.871] [参与] basic_join_decision:参与成功
行4857: [2026-01-12 20:42:40.928] [参与] 参与成功,但倒计时已过期,不设置等待标志
行4859: [2026-01-12 20:42:41.117] [参与] basic_join_decision:参与成功
行4870: [2026-01-12 20:43:02.064] [参与] 参与成功,但倒计时已过期,不设置等待标志
行4872: [2026-01-12 20:43:02.263] [参与] basic_join_decision:参与成功
行4883: [2026-01-12 20:43:24.976] [参与] 参与成功,但倒计时已过期,不设置等待标志
行4885: [2026-01-12 20:43:25.183] [参与] basic_join_decision:参与成功
行4896: [2026-01-12 20:43:46.817] [参与] 参与成功,但倒计时已过期,不设置等待标志
行4898: [2026-01-12 20:43:47.019] [参与] basic_join_decision:参与成功
行4909: [2026-01-12 20:44:08.605] [参与] 参与成功,但倒计时已过期,不设置等待标志
行4911: [2026-01-12 20:44:08.800] [参与] basic_join_decision:参与成功
行4922: [2026-01-12 20:44:31.147] [参与] 参与成功,但倒计时已过期,不设置等待标志
行4924: [2026-01-12 20:44:31.320] [参与] basic_join_decision:参与成功
行4978: [2026-01-12 20:46:26.058] [参与] 参与成功,设置等待开奖标志
行4980: [2026-01-12 20:46:26.256] [参与] basic_join_decision:参与成功
行4982: [2026-01-12 20:46:26.262] [参与] 参与成功,设置等待开奖标志,停止其他行为
行5224: [2026-01-12 20:56:14.498] [参与] basic_join_decision:参与成功
行5259: [2026-01-12 20:57:18.287] [参与] basic_join_decision:参与成功
行5323: [2026-01-12 21:00:49.538] [参与] basic_join_decision:参与成功
行5358: [2026-01-12 21:01:57.628] [参与] basic_join_decision:参与成功
行5369: [2026-01-12 21:02:07.881] [参与] 参与成功,但倒计时已过期,不设置等待标志
行5371: [2026-01-12 21:02:08.087] [参与] basic_join_decision:参与成功
行5382: [2026-01-12 21:02:18.501] [参与] 参与成功,但倒计时已过期,不设置等待标志
行5384: [2026-01-12 21:02:18.694] [参与] basic_join_decision:参与成功
行5395: [2026-01-12 21:02:29.602] [参与] 参与成功,但倒计时已过期,不设置等待标志
行5397: [2026-01-12 21:02:29.810] [参与] basic_join_decision:参与成功
行5501: [2026-01-12 21:05:21.702] [参与] 参与成功,但倒计时已过期,不设置等待标志
行5503: [2026-01-12 21:05:21.889] [参与] basic_join_decision:参与成功
行5513: [2026-01-12 21:05:32.418] [参与] 参与成功,设置等待开奖标志
行5515: [2026-01-12 21:05:32.604] [参与] basic_join_decision:参与成功
行5517: [2026-01-12 21:05:32.609] [参与] 参与成功,设置等待开奖标志,停止其他行为
行5606: [2026-01-12 21:09:48.041] [参与] basic_join_decision:参与成功
行5616: [2026-01-12 21:09:54.964] [参与] 参与成功,设置等待开奖标志
行5618: [2026-01-12 21:09:55.171] [参与] basic_join_decision:参与成功
行5620: [2026-01-12 21:09:55.174] [参与] 参与成功,设置等待开奖标志,停止其他行为
行5872: [2026-01-12 21:21:24.597] [参与] basic_join_decision:参与成功
行5877: [2026-01-12 21:21:27.310] [参与] 第二次打开:直接点击参与成功
行5886: [2026-01-12 21:21:34.806] [参与] 参与成功,设置等待开奖标志
行5888: [2026-01-12 21:21:35.012] [参与] basic_join_decision:参与成功
行5890: [2026-01-12 21:21:35.016] [参与] 参与成功,设置等待开奖标志,停止其他行为
行6276: [2026-01-12 21:37:40.538] [参与] basic_join_decision:参与成功
行6286: [2026-01-12 21:37:47.834] [参与] 参与成功,设置等待开奖标志
行6288: [2026-01-12 21:37:48.053] [参与] basic_join_decision:参与成功
行6290: [2026-01-12 21:37:48.057] [参与] 参与成功,设置等待开奖标志,停止其他行为
行6437: [2026-01-12 21:44:15.570] [参与] basic_join_decision:参与成功
行6447: [2026-01-12 21:44:23.256] [参与] 参与成功,设置等待开奖标志
行6449: [2026-01-12 21:44:23.474] [参与] basic_join_decision:参与成功
行6451: [2026-01-12 21:44:23.476] [参与] 参与成功,设置等待开奖标志,停止其他行为
行6483: [2026-01-12 21:45:52.175] [参与] basic_join_decision:参与成功
行6493: [2026-01-12 21:46:10.275] [参与] 参与成功,设置等待开奖标志
行6495: [2026-01-12 21:46:10.516] [参与] basic_join_decision:参与成功
行6497: [2026-01-12 21:46:10.519] [参与] 参与成功,设置等待开奖标志,停止其他行为
行6550: [2026-01-12 21:48:18.066] [参与] basic_join_decision:参与成功
行6633: [2026-01-12 21:51:35.599] [参与] basic_join_decision:参与成功
行6643: [2026-01-12 21:51:43.228] [参与] 参与成功,设置等待开奖标志
行6645: [2026-01-12 21:51:43.445] [参与] basic_join_decision:参与成功
行6647: [2026-01-12 21:51:43.447] [参与] 参与成功,设置等待开奖标志,停止其他行为
行6905: [2026-01-12 22:03:02.104] [参与] basic_join_decision:参与成功
行6915: [2026-01-12 22:03:10.777] [参与] 参与成功,设置等待开奖标志
行6917: [2026-01-12 22:03:10.960] [参与] basic_join_decision:参与成功
行6919: [2026-01-12 22:03:10.964] [参与] 参与成功,设置等待开奖标志,停止其他行为
行7190: [2026-01-12 22:15:54.265] [参与] basic_join_decision:参与成功
行7200: [2026-01-12 22:16:01.640] [参与] 参与成功,设置等待开奖标志
行7202: [2026-01-12 22:16:01.839] [参与] basic_join_decision:参与成功
行7204: [2026-01-12 22:16:01.841] [参与] 参与成功,设置等待开奖标志,停止其他行为
行7243: [2026-01-12 22:17:54.276] [参与] basic_join_decision:参与成功
行7254: [2026-01-12 22:18:04.702] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7256: [2026-01-12 22:18:04.907] [参与] basic_join_decision:参与成功
行7267: [2026-01-12 22:18:15.625] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7269: [2026-01-12 22:18:15.802] [参与] basic_join_decision:参与成功
行7280: [2026-01-12 22:18:26.422] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7282: [2026-01-12 22:18:26.615] [参与] basic_join_decision:参与成功
行7293: [2026-01-12 22:18:37.098] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7295: [2026-01-12 22:18:37.277] [参与] basic_join_decision:参与成功
行7306: [2026-01-12 22:18:47.649] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7308: [2026-01-12 22:18:47.842] [参与] basic_join_decision:参与成功
行7319: [2026-01-12 22:18:58.529] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7321: [2026-01-12 22:18:58.742] [参与] basic_join_decision:参与成功
行7332: [2026-01-12 22:19:09.120] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7334: [2026-01-12 22:19:09.312] [参与] basic_join_decision:参与成功
行7345: [2026-01-12 22:19:19.817] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7347: [2026-01-12 22:19:20.017] [参与] basic_join_decision:参与成功
行7358: [2026-01-12 22:19:30.232] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7360: [2026-01-12 22:19:30.437] [参与] basic_join_decision:参与成功
行7371: [2026-01-12 22:19:40.923] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7373: [2026-01-12 22:19:41.110] [参与] basic_join_decision:参与成功
行7384: [2026-01-12 22:19:51.322] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7386: [2026-01-12 22:19:51.494] [参与] basic_join_decision:参与成功
行7397: [2026-01-12 22:20:01.909] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7399: [2026-01-12 22:20:02.081] [参与] basic_join_decision:参与成功
行7410: [2026-01-12 22:20:12.144] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7412: [2026-01-12 22:20:12.339] [参与] basic_join_decision:参与成功
行7423: [2026-01-12 22:20:22.718] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7425: [2026-01-12 22:20:22.906] [参与] basic_join_decision:参与成功
行7436: [2026-01-12 22:20:36.676] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7438: [2026-01-12 22:20:36.865] [参与] basic_join_decision:参与成功
行7449: [2026-01-12 22:20:47.326] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7451: [2026-01-12 22:20:47.536] [参与] basic_join_decision:参与成功
行7462: [2026-01-12 22:20:58.027] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7464: [2026-01-12 22:20:58.209] [参与] basic_join_decision:参与成功
行7475: [2026-01-12 22:21:08.765] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7477: [2026-01-12 22:21:08.954] [参与] basic_join_decision:参与成功
行7488: [2026-01-12 22:21:19.380] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7490: [2026-01-12 22:21:19.565] [参与] basic_join_decision:参与成功
行7501: [2026-01-12 22:21:29.903] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7503: [2026-01-12 22:21:30.101] [参与] basic_join_decision:参与成功
行7514: [2026-01-12 22:21:40.797] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7516: [2026-01-12 22:21:40.986] [参与] basic_join_decision:参与成功
行7527: [2026-01-12 22:21:51.374] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7529: [2026-01-12 22:21:51.566] [参与] basic_join_decision:参与成功
行7540: [2026-01-12 22:22:02.173] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7542: [2026-01-12 22:22:02.376] [参与] basic_join_decision:参与成功
行7553: [2026-01-12 22:22:13.645] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7555: [2026-01-12 22:22:13.848] [参与] basic_join_decision:参与成功
行7566: [2026-01-12 22:22:24.189] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7568: [2026-01-12 22:22:24.369] [参与] basic_join_decision:参与成功
行7579: [2026-01-12 22:22:35.494] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7581: [2026-01-12 22:22:35.685] [参与] basic_join_decision:参与成功
行7592: [2026-01-12 22:22:45.778] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7594: [2026-01-12 22:22:45.977] [参与] basic_join_decision:参与成功
行7605: [2026-01-12 22:22:56.356] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7607: [2026-01-12 22:22:56.532] [参与] basic_join_decision:参与成功
行7618: [2026-01-12 22:23:06.861] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7620: [2026-01-12 22:23:07.067] [参与] basic_join_decision:参与成功
行7631: [2026-01-12 22:23:17.458] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7633: [2026-01-12 22:23:17.672] [参与] basic_join_decision:参与成功
行7644: [2026-01-12 22:23:28.209] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7646: [2026-01-12 22:23:28.408] [参与] basic_join_decision:参与成功
行7657: [2026-01-12 22:23:38.855] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7659: [2026-01-12 22:23:39.053] [参与] basic_join_decision:参与成功
行7670: [2026-01-12 22:23:49.851] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7672: [2026-01-12 22:23:50.026] [参与] basic_join_decision:参与成功
行7683: [2026-01-12 22:24:00.550] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7685: [2026-01-12 22:24:00.757] [参与] basic_join_decision:参与成功
行7696: [2026-01-12 22:24:11.563] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7698: [2026-01-12 22:24:11.733] [参与] basic_join_decision:参与成功
行7709: [2026-01-12 22:24:22.422] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7711: [2026-01-12 22:24:22.606] [参与] basic_join_decision:参与成功
行7722: [2026-01-12 22:24:33.402] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7724: [2026-01-12 22:24:33.592] [参与] basic_join_decision:参与成功
行7735: [2026-01-12 22:24:44.265] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7737: [2026-01-12 22:24:44.475] [参与] basic_join_decision:参与成功
行7748: [2026-01-12 22:24:55.264] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7750: [2026-01-12 22:24:55.443] [参与] basic_join_decision:参与成功
行7761: [2026-01-12 22:25:06.342] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7763: [2026-01-12 22:25:06.521] [参与] basic_join_decision:参与成功
行7774: [2026-01-12 22:25:17.220] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7776: [2026-01-12 22:25:17.418] [参与] basic_join_decision:参与成功
行7787: [2026-01-12 22:25:28.205] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7789: [2026-01-12 22:25:28.425] [参与] basic_join_decision:参与成功
行7800: [2026-01-12 22:25:39.162] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7802: [2026-01-12 22:25:39.364] [参与] basic_join_decision:参与成功
行7813: [2026-01-12 22:25:49.736] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7815: [2026-01-12 22:25:49.942] [参与] basic_join_decision:参与成功
行7826: [2026-01-12 22:26:00.687] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7828: [2026-01-12 22:26:00.880] [参与] basic_join_decision:参与成功
行7839: [2026-01-12 22:26:11.295] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7841: [2026-01-12 22:26:11.507] [参与] basic_join_decision:参与成功
行7852: [2026-01-12 22:26:22.123] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7854: [2026-01-12 22:26:22.335] [参与] basic_join_decision:参与成功
行7865: [2026-01-12 22:26:33.003] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7867: [2026-01-12 22:26:33.221] [参与] basic_join_decision:参与成功
行7878: [2026-01-12 22:26:45.182] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7880: [2026-01-12 22:26:45.403] [参与] basic_join_decision:参与成功
行7891: [2026-01-12 22:26:55.732] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7893: [2026-01-12 22:26:55.931] [参与] basic_join_decision:参与成功
行7904: [2026-01-12 22:27:06.394] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7906: [2026-01-12 22:27:06.596] [参与] basic_join_decision:参与成功
行7917: [2026-01-12 22:27:16.962] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7919: [2026-01-12 22:27:17.179] [参与] basic_join_decision:参与成功
行7930: [2026-01-12 22:27:27.231] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7932: [2026-01-12 22:27:27.417] [参与] basic_join_decision:参与成功
行7943: [2026-01-12 22:27:37.425] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7945: [2026-01-12 22:27:37.607] [参与] basic_join_decision:参与成功
行7956: [2026-01-12 22:27:47.612] [参与] 参与成功,但倒计时已过期,不设置等待标志
行7958: [2026-01-12 22:27:47.808] [参与] basic_join_decision:参与成功
行7968: [2026-01-12 22:27:57.953] [参与] 参与成功,设置等待开奖标志
行7970: [2026-01-12 22:27:58.151] [参与] basic_join_decision:参与成功
行7972: [2026-01-12 22:27:58.156] [参与] 参与成功,设置等待开奖标志,停止其他行为
行8060: [2026-01-12 22:31:51.932] [参与] basic_join_decision:参与成功
行8070: [2026-01-12 22:31:59.351] [参与] 参与成功,设置等待开奖标志
行8072: [2026-01-12 22:31:59.554] [参与] basic_join_decision:参与成功
行8074: [2026-01-12 22:31:59.557] [参与] 参与成功,设置等待开奖标志,停止其他行为
行8162: [2026-01-12 22:35:32.060] [参与] basic_join_decision:参与成功
行8172: [2026-01-12 22:35:39.439] [参与] 参与成功,设置等待开奖标志
行8174: [2026-01-12 22:35:39.638] [参与] basic_join_decision:参与成功
行8176: [2026-01-12 22:35:39.641] [参与] 参与成功,设置等待开奖标志,停止其他行为
行8212: [2026-01-12 22:37:20.177] [参与] basic_join_decision:参与成功
行8235: [2026-01-12 22:37:56.678] [参与] basic_join_decision:参与成功
行8245: [2026-01-12 22:38:04.585] [参与] 参与成功,设置等待开奖标志
行8247: [2026-01-12 22:38:04.780] [参与] basic_join_decision:参与成功
行8249: [2026-01-12 22:38:04.784] [参与] 参与成功,设置等待开奖标志,停止其他行为
行8266: [2026-01-12 22:38:34.867] [参与] basic_join_decision:参与成功
行8382: [2026-01-12 22:42:55.124] [参与] basic_join_decision:参与成功
行8392: [2026-01-12 22:43:02.568] [参与] 参与成功,设置等待开奖标志
行8394: [2026-01-12 22:43:02.766] [参与] basic_join_decision:参与成功
行8396: [2026-01-12 22:43:02.769] [参与] 参与成功,设置等待开奖标志,停止其他行为
行8536: [2026-01-12 22:49:43.113] [参与] basic_join_decision:参与成功
行8546: [2026-01-12 22:49:51.541] [参与] 参与成功,设置等待开奖标志
行8548: [2026-01-12 22:49:51.753] [参与] basic_join_decision:参与成功
行8550: [2026-01-12 22:49:51.756] [参与] 参与成功,设置等待开奖标志,停止其他行为
行8595: [2026-01-12 22:52:29.867] [参与] basic_join_decision:参与成功
行8606: [2026-01-12 22:52:40.240] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8608: [2026-01-12 22:52:40.436] [参与] basic_join_decision:参与成功
行8619: [2026-01-12 22:52:51.194] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8621: [2026-01-12 22:52:51.414] [参与] basic_join_decision:参与成功
行8632: [2026-01-12 22:53:01.999] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8634: [2026-01-12 22:53:02.196] [参与] basic_join_decision:参与成功
行8645: [2026-01-12 22:53:12.874] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8647: [2026-01-12 22:53:13.073] [参与] basic_join_decision:参与成功
行8658: [2026-01-12 22:53:23.935] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8660: [2026-01-12 22:53:24.173] [参与] basic_join_decision:参与成功
行8671: [2026-01-12 22:53:34.819] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8673: [2026-01-12 22:53:35.036] [参与] basic_join_decision:参与成功
行8684: [2026-01-12 22:53:45.482] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8686: [2026-01-12 22:53:45.673] [参与] basic_join_decision:参与成功
行8697: [2026-01-12 22:53:56.087] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8699: [2026-01-12 22:53:56.273] [参与] basic_join_decision:参与成功
行8710: [2026-01-12 22:54:06.457] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8712: [2026-01-12 22:54:06.654] [参与] basic_join_decision:参与成功
行8723: [2026-01-12 22:54:17.140] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8725: [2026-01-12 22:54:17.323] [参与] basic_join_decision:参与成功
行8736: [2026-01-12 22:54:28.589] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8738: [2026-01-12 22:54:28.808] [参与] basic_join_decision:参与成功
行8749: [2026-01-12 22:54:39.753] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8751: [2026-01-12 22:54:39.963] [参与] basic_join_decision:参与成功
行8762: [2026-01-12 22:54:50.191] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8764: [2026-01-12 22:54:50.394] [参与] basic_join_decision:参与成功
行8775: [2026-01-12 22:55:00.916] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8777: [2026-01-12 22:55:01.112] [参与] basic_join_decision:参与成功
行8788: [2026-01-12 22:55:11.990] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8790: [2026-01-12 22:55:12.181] [参与] basic_join_decision:参与成功
行8801: [2026-01-12 22:55:22.864] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8803: [2026-01-12 22:55:23.089] [参与] basic_join_decision:参与成功
行8814: [2026-01-12 22:55:34.039] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8816: [2026-01-12 22:55:34.221] [参与] basic_join_decision:参与成功
行8827: [2026-01-12 22:55:44.753] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8829: [2026-01-12 22:55:44.957] [参与] basic_join_decision:参与成功
行8840: [2026-01-12 22:55:55.826] [参与] 参与成功,但倒计时已过期,不设置等待标志
行8842: [2026-01-12 22:55:56.013] [参与] basic_join_decision:参与成功
-33
View File
@@ -1,33 +0,0 @@
Reading logs\actions.log...
Reading logs\unified_2026-01-12_003546.log...
Reading logs\unified_2026-01-12.log...
Reading logs\unified_2026-01-11_230527.log...
-----------------------------------------------------------------------------------------------------------------------
Operation | Count | Avg | P50 | P80 | P95 | Max
-----------------------------------------------------------------------------------------------------------------------
[流程] run_once_basic | 142 | 14831.2 | 16210.0 | 23148.0 | 33541.5 | 55170.0
[福袋查找] 福袋查找 | 100 | 11896.8 | 9166.0 | 15917.6 | 25612.3 | 38443.0
[流程] handle_live_room_has_or_not_fudai | 100 | 11895.5 | 9165.0 | 15920.0 | 25610.5 | 38440.0
[流程] handle_in_fudai_detail | 39 | 8981.0 | 6660.0 | 10746.0 | 21919.0 | 30030.0
[参与] basic_join_decision | 24 | 7505.0 | 7070.0 | 8216.0 | 20918.0 | 27350.0
[预约] [预约] process_reservation_attend_window 返回结果 | 7 | 7118.6 | 4890.0 | 6434.0 | 17838.0 | 22620.0
[流程] find_and_open_fudai_detail | 100 | 5762.4 | 5135.0 | 6878.0 | 8632.5 | 10650.0
[流程] 检测到福袋图标 | 318 | 3632.8 | 4305.0 | 4870.0 | 5060.0 | 5730.0
[ACTION] return to recommend and reenter live | 23 | 3525.2 | 19.9 | 32.9 | 15656.4 | 63200.0
[福袋详情] read_fudai_detail_with_retries | 44 | 2899.8 | 2840.0 | 2944.0 | 3068.5 | 4870.0
[福袋详情] read_fudai_detail_once | 44 | 2039.3 | 1980.0 | 2078.0 | 2208.5 | 4000.0
[福袋详情] 完整识别结果 | 44 | 2013.4 | 1940.0 | 2070.0 | 2140.0 | 4000.0
[ACTION] 上滑切换直播间 | 8797 | 1473.9 | 1700.0 | 2160.0 | 2460.0 | 73260.0
[截图] 获取屏幕截图 | 3224 | 1383.2 | 1340.8 | 1619.9 | 1955.4 | 2472.6
[操作] 上滑切换直播间 | 110 | 846.4 | 510.0 | 532.0 | 1503.0 | 11990.0
[OCR] 等待开奖期间OCR检测 | 3 | 810.0 | 810.0 | 858.0 | 882.0 | 890.0
[预约] 预约检查 | 119 | 550.0 | 16.0 | 22.4 | 3580.8 | 22630.0
[ACTION] 下滑回退直播间 | 3068 | 531.6 | 490.0 | 510.0 | 860.0 | 11910.0
[操作] 点击操作 | 56 | 212.1 | 210.0 | 230.0 | 240.0 | 250.0
[筛选] should_skip_fudai_by_config | 53 | 25.8 | 30.0 | 40.0 | 50.0 | 60.0
[预约] [预约] add_reservation_core_logic | 19 | 25.8 | 20.0 | 40.0 | 51.0 | 60.0
[预约] [预约] cleanup_expired_reservations | 27 | 7.4 | 0.0 | 8.0 | 40.0 | 40.0
[[福袋查找] 像素检测] 实际福袋区域命中 | 45 | 0.2 | 0.0 | 0.0 | 0.0 | 10.0
[[福袋查找] 像素检测] 实际福袋区域未命中 | 473 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0
[预约] [预约] | 119 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0
-----------------------------------------------------------------------------------------------------------------------
+1 -1
View File
@@ -18,7 +18,7 @@ import os
from douyin.detection.douyin_detection import check_have_fudai_with_ready_screenshot
from douyin.fudai.douyin_fudai_core import should_skip_fudai_by_config
import path_config
from douyin.core import path_config
def handle_stage_after_diagnosis(
+4 -4
View File
@@ -20,7 +20,7 @@ import logging
from PIL import Image # type: ignore[import]
import numpy as np # type: ignore[import]
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
from douyin.stage import douyin_stage
from douyin.detection import douyin_detection
@@ -99,7 +99,7 @@ class fudai_analyse:
logging.warning("日志系统初始化失败: %s", e)
try:
from unified_logger import MDC, get_unified_logger
from douyin.logging.unified_logger import MDC, get_unified_logger
# 为当前实例设置traceId
MDC.set_trace_id(f"run_{self._run_id}")
@@ -563,7 +563,7 @@ class fudai_analyse:
"""兼容原 fudai1.fudai_choujiang 的主入口(当前实现为精简版:仅基础抢福袋)。"""
# 程序启动时清理旧截图文件,避免复用过期的截图
try:
import path_config
from douyin.core import path_config
import os
pic_path = path_config.get_screenshot_path()
@@ -855,7 +855,7 @@ class fudai_analyse:
返回 ROI 图片路径(绝对路径),失败返回空字符串。
"""
try:
import path_config
from douyin.core import path_config
# use module-level `Image`
@@ -74,7 +74,7 @@ class MainLogicMixin(BaseFudaiMixin):
# #region agent log
import json
import time as time_module
from path_config import get_debug_log_path
from douyin.core.path_config import get_debug_log_path
current_ts = int(time_module.time() * 1000)
with open(get_debug_log_path(), "a", encoding="utf-8") as f:
@@ -143,7 +143,7 @@ class MainLogicMixin(BaseFudaiMixin):
# #region agent log
import json
from path_config import get_debug_log_path
from douyin.core.path_config import get_debug_log_path
with open(get_debug_log_path(), "a", encoding="utf-8") as f:
f.write(
@@ -5,7 +5,11 @@ import os
from typing import Optional
# 项目根目录(所有路径的基准)
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
# __file__ 位于 <project_root>/douyin/core/path_config.py,
# 所以项目根是当前文件向上两级目录。
PROJECT_ROOT = os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
)
def get_project_root() -> str:
@@ -127,7 +131,7 @@ def get_robot_verify_pic_path(save_subdir: bool = False) -> str:
def get_run_cli_path() -> str:
"""返回 run_cli.py 的路径(绝对路径)"""
return os.path.abspath(os.path.join(PROJECT_ROOT, "run_cli.py"))
return os.path.abspath(os.path.join(PROJECT_ROOT, "bin", "run_cli.py"))
def ensure_dir(path: str) -> None:
@@ -495,11 +495,11 @@ class underlying_operations:
图片的完整路径,如果找不到且for_reading=True则返回None
"""
try:
import path_config
from douyin.core import path_config
pic_base = path_config.get_pic_dir()
except Exception:
import path_config
from douyin.core import path_config
pic_base = path_config.get_pic_dir()
@@ -747,11 +747,11 @@ class underlying_operations:
if path == "pic":
try:
import path_config
from douyin.core import path_config
out_dir = path_config.get_pic_dir()
except Exception:
import path_config
from douyin.core import path_config
out_dir = path_config.get_pic_dir()
else:
@@ -1281,11 +1281,11 @@ class underlying_operations:
def save_reward_pic(self, device_id):
try:
import path_config
from douyin.core import path_config
out_dir = path_config.get_pic_dir()
except Exception:
import path_config
from douyin.core import path_config
out_dir = path_config.get_pic_dir()
if not os.path.exists(out_dir):
@@ -1678,7 +1678,7 @@ class underlying_operations:
if save_debug:
from douyin.handlers import douyin_screenshot_manager
import path_config
from douyin.core import path_config
# 尝试获取OCR区域坐标
ocr_coords = None
@@ -1874,7 +1874,7 @@ class underlying_operations:
# 加载完整截图
full_screenshot = None
try:
import path_config
from douyin.core import path_config
screenshot_path = path_config.get_screenshot_path()
if os.path.exists(screenshot_path):
@@ -2050,7 +2050,7 @@ class underlying_operations:
# 保存预处理后的调试图像(OCR前)- 使用完整截图
try:
from douyin.handlers import douyin_screenshot_manager
import path_config
from douyin.core import path_config
# 尝试获取OCR区域坐标
ocr_coords = None
@@ -2119,7 +2119,7 @@ class underlying_operations:
# 保存OCR结果后的调试图像(带OCR文本结果和置信度)- 使用完整截图
try:
from douyin.handlers import douyin_screenshot_manager
import path_config
from douyin.core import path_config
# 尝试获取OCR区域坐标
ocr_coords = None
@@ -3375,11 +3375,11 @@ class underlying_operations:
return False
try:
import path_config
from douyin.core import path_config
local_path = path_config.get_window_dump_path()
except Exception:
import path_config
from douyin.core import path_config
local_path = path_config.get_window_dump_path()
start = time_module.time()
@@ -3428,11 +3428,11 @@ class underlying_operations:
如果没有文字,就在顶部区域按“最像关闭”的位置进行启发式选择。
"""
try:
import path_config
from douyin.core import path_config
local_path = path_config.get_window_dump_path()
except Exception:
import path_config
from douyin.core import path_config
local_path = path_config.get_window_dump_path()
start = time_module.time()
File renamed without changes.
+7 -7
View File
@@ -39,12 +39,12 @@ def check_detail_height(analyser: Any) -> int:
"""
# 使用统一的截图路径配置
try:
import path_config
from douyin.core import path_config
pic1_path = path_config.get_screenshot_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
pic1_path = path_config.get_screenshot_path()
@@ -310,12 +310,12 @@ def check_have_fudai_with_ready_screenshot(
func_start = time.time()
# 使用统一的截图路径配置
try:
import path_config
from douyin.core import path_config
pic1_path = path_config.get_screenshot_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
pic1_path = path_config.get_screenshot_path()
attempt_count = 0 # 仅用于日志记录,不影响循环控制
@@ -847,7 +847,7 @@ def check_have_fudai_with_ready_screenshot(
# 获取模板路径
try:
import path_config
from douyin.core import path_config
template_path = path_config.get_assets_dir() + "/fudai.png"
except Exception:
@@ -1243,7 +1243,7 @@ def check_have_fudai_with_ready_screenshot(
# 获取模板路径
try:
import path_config
from douyin.core import path_config
template_path = path_config.get_assets_dir() + "/fudai.png"
except Exception:
@@ -1729,7 +1729,7 @@ def check_in_fudai_detail(analyser: Any) -> bool:
# 使用模板匹配检测,与 detect_fudai_detail_page 保持一致
try:
from douyin.detection import douyin_pixel
import path_config
from douyin.core import path_config
# 获取截图
pic_path = path_config.get_screenshot_path()
+1 -1
View File
@@ -99,7 +99,7 @@ def detect_coupon_popup_background(
# 使用统一的模板路径配置
try:
import path_config
from douyin.core import path_config
template_path = path_config.get_assets_dir() + "/coupon.png"
except Exception:
+2 -2
View File
@@ -9,7 +9,7 @@ import os
import time
from typing import Any
import path_config
from douyin.core import path_config
def attend_choujiang(analyser) -> bool:
@@ -432,7 +432,7 @@ def attend_choujiang(analyser) -> bool:
# 设置等待开奖标志,避免参与后立即切换直播间
# #region agent log - set countdown
import json
from path_config import get_debug_log_path
from douyin.core.path_config import get_debug_log_path
current_ts_debug = int(time.time() * 1000)
with open(get_debug_log_path(), "a", encoding="utf-8") as f:
+1 -1
View File
@@ -11,7 +11,7 @@ import traceback
from typing import Any, Tuple, Optional, Dict
from PIL import Image, UnidentifiedImageError
import path_config
from douyin.core import path_config
def log_debug_error(
+1 -1
View File
@@ -11,7 +11,7 @@ import os
from typing import Tuple, Any
from concurrent.futures import ThreadPoolExecutor
import path_config
from douyin.core import path_config
from douyin.fudai.core.fudai_debug_utils import _save_full_screenshot_with_ocr_region
from douyin.fudai.core.fudai_filter import is_watch_task_fudai
from douyin.utils.douyin_utils import extract_prize_value_yuan
+1 -1
View File
@@ -11,7 +11,7 @@ import numpy as np # type: ignore[import]
from douyin.utils.douyin_utils import extract_prize_value_yuan
from douyin.reservation import douyin_reservation_logic
import path_config
from douyin.core import path_config
# 从新模块导入调试工具函数
from douyin.fudai.core.fudai_debug_utils import (
+1 -1
View File
@@ -18,7 +18,7 @@ import os
import time
from typing import Any, Optional, Tuple, Dict
from PIL import Image
import path_config
from douyin.core import path_config
# OCR 预处理接口(直接导入)
from douyin.utils.ocr_preprocess import preprocess_for_ocr # type: ignore
+1 -1
View File
@@ -14,7 +14,7 @@ import os
import shutil
from typing import Optional, Tuple
from PIL import Image
import path_config
from douyin.core import path_config
import threading
from queue import Queue, Empty
from typing import Any
+1 -1
View File
@@ -19,7 +19,7 @@ import os
import sys
import json
from typing import Optional, Dict, Any
import path_config
from douyin.core import path_config
# 日志配置默认值
+2 -2
View File
@@ -30,7 +30,7 @@ import threading
from datetime import datetime, timedelta
from typing import Optional, Callable, Any, Dict
from functools import wraps
import path_config
from douyin.core import path_config
# 全局日志配置
@@ -860,7 +860,7 @@ def configure_logging(
file_handler.setLevel(numeric_level)
# 使用自定义Formatter以支持traceId
try:
from unified_logger import UnifiedFormatter
from douyin.logging.unified_logger import UnifiedFormatter
file_formatter = UnifiedFormatter(
detailed_format, datefmt="%Y-%m-%d %H:%M:%S"
+6 -6
View File
@@ -396,7 +396,7 @@ class LoggingWrapper:
# 获取日志格式模式配置(simple 或 detailed)
log_format_mode = "simple" # 默认简洁模式
try:
import path_config
from douyin.core import path_config
import json
config_path = path_config.get_config_path()
@@ -511,7 +511,7 @@ class LoggingWrapper:
# 写入 actions.log 文件
try:
import path_config
from douyin.core import path_config
actions_log_path = path_config.get_actions_log_path()
log_dir = path_config.get_logs_dir()
@@ -949,7 +949,7 @@ class LoggingWrapper:
# 写入 actions.log 文件
try:
import path_config
from douyin.core import path_config
actions_log_path = path_config.get_actions_log_path()
log_dir = path_config.get_logs_dir()
@@ -1012,7 +1012,7 @@ class LoggingWrapper:
if not hasattr(analyser, "_std_logger") or analyser._std_logger is None:
try:
from unified_logger import get_unified_logger
from douyin.logging.unified_logger import get_unified_logger
analyser._std_logger = get_unified_logger("douyin.fudai")
except ImportError:
@@ -1030,7 +1030,7 @@ class LoggingWrapper:
std_msg_parts.append(f"[调用:{caller_info}]")
if msg:
try:
from unified_logger import SensitiveDataMasker
from douyin.logging.unified_logger import SensitiveDataMasker
masked_msg = SensitiveDataMasker.mask_all(str(msg))
std_msg_parts.append(masked_msg)
@@ -1039,7 +1039,7 @@ class LoggingWrapper:
masked_fields: Dict[str, Any] = {}
try:
from unified_logger import SensitiveDataMasker
from douyin.logging.unified_logger import SensitiveDataMasker
masked_fields = SensitiveDataMasker.mask_dict(fields)
except ImportError:
+1 -1
View File
@@ -5,7 +5,7 @@ import logging
import traceback
import os
from typing import Any, Dict, Optional
import path_config
from douyin.core import path_config
logger = None
File renamed without changes.
+1 -1
View File
@@ -1,7 +1,7 @@
from douyin.core.douyin_fudai import fudai_analyse
try:
from version import print_version_banner
from douyin.core.version import print_version_banner
except Exception:
print_version_banner = None
+4 -4
View File
@@ -27,12 +27,12 @@ def check_coupon_popup(analyser) -> bool:
try:
# 使用统一的截图路径配置
try:
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
pic = Image.open(pic_path)
@@ -198,12 +198,12 @@ def check_shopping_redpacket_popup(analyser) -> bool:
try:
# 使用统一的截图路径配置
try:
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
pic = Image.open(pic_path)
+1 -1
View File
@@ -95,7 +95,7 @@ def deal_robot_analyse(analyser) -> None:
def deal_robot_pic_change_color(analyser) -> None:
"""处理人机验证的图片,转为黑白图。"""
analyser.cut_pic(*ROBOT_VERIFY, "save", "机器人验证")
import path_config
from douyin.core import path_config
path = path_config.get_robot_verify_pic_path(save_subdir=True)
pic = path
+1 -1
View File
@@ -253,7 +253,7 @@ def yanghao_idle(analyser, total_seconds: int) -> None:
analyser.operation.get_screenshot(
analyser.device_id, use_service=False
)
import path_config
from douyin.core import path_config
screenshot_path = path_config.get_screenshot_path()
except Exception:
@@ -17,7 +17,7 @@ from typing import Any, Optional, Dict
import json
import csv
import os
import path_config
from douyin.core import path_config
from douyin.fudai import douyin_fudai_detail
from douyin.reservation import douyin_reservation_logic
+1 -1
View File
@@ -1046,7 +1046,7 @@ def diagnose_stage_from_current_screen(analyser, trigger_reason="unknown"): # t
douyin_screenshot_manager = importlib.import_module(
"douyin.handlers.douyin_screenshot_manager"
)
import path_config
from douyin.core import path_config
import os
from PIL import Image
+4 -4
View File
@@ -98,7 +98,7 @@ class StageHandler:
# 使用统一的模板路径配置
try:
import path_config
from douyin.core import path_config
assets_dir = path_config.get_assets_dir()
except Exception:
@@ -107,7 +107,7 @@ class StageHandler:
# 使用统一的截图路径配置
try:
import path_config
from douyin.core import path_config
screenshot_path = path_config.get_screenshot_path()
except Exception:
@@ -134,7 +134,7 @@ class StageHandler:
if not os.path.exists(screenshot_path):
# 尝试从项目根目录的 pic 目录查找
try:
import path_config
from douyin.core import path_config
alt_path = path_config.get_screenshot_path()
if os.path.exists(alt_path) and alt_path != screenshot_path:
@@ -247,7 +247,7 @@ class StageHandler:
# 保存裁剪的ROI区域
# 使用统一的 pic 目录配置
try:
import path_config
from douyin.core import path_config
pic_dir = path_config.get_pic_dir()
except Exception:
+2 -2
View File
@@ -26,11 +26,11 @@ class ConfigManager:
passed_in_config_path = config_path is not None
if config_path is None:
try:
import path_config
from douyin.core import path_config
default_config_path = path_config.get_config_path()
except Exception:
import path_config
from douyin.core import path_config
default_config_path = path_config.get_config_path()
config_path = getattr(analyser, "config_path", default_config_path)
+3 -3
View File
@@ -67,7 +67,7 @@ class HelperFunctions:
"""
# 使用统一的截图路径配置
try:
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
except (ImportError, ModuleNotFoundError, AttributeError):
@@ -197,7 +197,7 @@ class HelperFunctions:
def _get_false_positive_file_path() -> str:
"""获取误识别记录文件路径"""
try:
import path_config
from douyin.core import path_config
pic_dir = path_config.get_pic_dir()
except (ImportError, ModuleNotFoundError, AttributeError):
@@ -365,7 +365,7 @@ class HelperFunctions:
# 使用统一的截图路径配置
try:
import path_config
from douyin.core import path_config
src = path_config.get_screenshot_path()
pic_dir = path_config.get_pic_dir()
+1 -1
View File
@@ -20,7 +20,7 @@ def preprocess_for_ocr(analyser: Any, cut_pic_name: str) -> str:
"""
try:
from PIL import Image, ImageOps, ImageFilter
from path_config import get_cut_pic_path
from douyin.core.path_config import get_cut_pic_path
except Exception:
# 如果 PIL 或 path_config 不可用,回退到原名
return cut_pic_name
+1 -1
View File
@@ -15,7 +15,7 @@ import inspect
from typing import Any, Dict
try:
from path_config import get_project_root
from douyin.core.path_config import get_project_root
except Exception:
def get_project_root() -> str:
+1 -1
View File
@@ -17,7 +17,7 @@ import time
from typing import Any, Callable, Dict, List, Optional
try:
from path_config import get_state_dir, ensure_dir
from douyin.core.path_config import get_state_dir, ensure_dir
except Exception:
# 兜底:如果无法导入 path_config,则使用 workspace 相对的 state 目录
def get_state_dir() -> str:
@@ -36,12 +36,12 @@ def is_wrong_coupon_popup(analyser: Any) -> bool:
try:
# 使用统一的截图路径配置
try:
import path_config
from douyin.core import path_config
path = path_config.get_screenshot_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
path = path_config.get_screenshot_path()
@@ -228,12 +228,12 @@ def is_wrong_coupon_popup(analyser: Any) -> bool:
# 使用统一的截图路径配置
try:
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
if os.path.exists(pic_path):
+5 -5
View File
@@ -167,7 +167,7 @@ def read_fudai_detail_once(analyser: Any) -> Tuple[str, Tuple, dict]:
try:
if getattr(analyser, "_screenshot_ready_for_ocr", False):
try:
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
except Exception:
@@ -212,7 +212,7 @@ def read_fudai_detail_once(analyser: Any) -> Tuple[str, Tuple, dict]:
# 等待截图文件确实存在(最多等待3秒)
try:
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
except Exception:
@@ -239,12 +239,12 @@ def read_fudai_detail_once(analyser: Any) -> Tuple[str, Tuple, dict]:
# 使用统一的截图路径配置
try:
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
pic_rgb = None
@@ -336,7 +336,7 @@ def read_fudai_detail_once(analyser: Any) -> Tuple[str, Tuple, dict]:
except Exception: # pyright: ignore[reportTooBroadExceptionType]
# fallback: 将 traceback 写入统一错误日志
try:
import path_config
from douyin.core import path_config
err_log = path_config.get_error_log_path()
with open(err_log, "a", encoding="utf-8") as ef:
@@ -207,7 +207,7 @@ def read_live_room_title_core(
else:
# 检查是否有可用的截图文件
try:
import path_config
from douyin.core import path_config
pic_path = path_config.get_screenshot_path()
except Exception:
@@ -12,7 +12,7 @@ import logging
import re
import os
import json
import path_config
from douyin.core import path_config
def validate_fudai_detail(detail: Tuple, analyser: Any = None) -> Tuple[bool, str]:
+2 -2
View File
@@ -63,11 +63,11 @@ def create_actions_log_viewer(
"""刷新行为日志:读取 logs/actions.log 的尾部若干行,在 GUI 中展示关键行为日志(支持简单关键字筛选)。"""
# 使用统一的路径配置
try:
import path_config
from douyin.core import path_config
path = path_config.get_actions_log_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
path = path_config.get_actions_log_path()
try:
+1 -1
View File
@@ -9,7 +9,7 @@ from datetime import datetime, timedelta
import re
try:
from path_config import get_error_log_path # type: ignore[assignment]
from douyin.core.path_config import get_error_log_path # type: ignore[assignment]
HAS_LOGGING = True
except ImportError:
# 如果导入失败,提供占位符函数
+26 -26
View File
@@ -32,7 +32,7 @@ from gui.gui_core import (
read_config,
write_config,
)
from path_config import get_logs_dir
from douyin.core.path_config import get_logs_dir
from gui.components.mapping_table import create_mapping_tab
# 导入日志颜色配置模块
@@ -188,7 +188,7 @@ def main():
# 获取日志文件路径配置
log_path = cfg.get("log_unified_path") or "logs/unified.log"
if not os.path.isabs(log_path):
from path_config import PROJECT_ROOT
from douyin.core.path_config import PROJECT_ROOT
log_path = os.path.join(PROJECT_ROOT, log_path)
@@ -3037,7 +3037,7 @@ def main():
# 在后台线程中执行截图和OCR识别,避免阻塞GUI
def screenshot_thread():
try:
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
# 使用模块级别导入的 Image 与 os,避免重复导入导致 Pylance 警告
@@ -3059,12 +3059,12 @@ def main():
# 读取截图以获取实际尺寸
try:
from path_config import get_screenshot_path
from douyin.core.path_config import get_screenshot_path
screenshot_path = get_screenshot_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
screenshot_path = path_config.get_screenshot_path()
if not os.path.exists(screenshot_path):
@@ -3338,11 +3338,11 @@ def main():
if show_screenshot_var.get():
try:
try:
from path_config import get_screenshot_path
from douyin.core.path_config import get_screenshot_path
screenshot_path = get_screenshot_path()
except Exception:
import path_config
from douyin.core import path_config
screenshot_path = path_config.get_screenshot_path()
@@ -3498,11 +3498,11 @@ def main():
# update image
try:
try:
from path_config import get_screenshot_path
from douyin.core.path_config import get_screenshot_path
screenshot_path = get_screenshot_path()
except Exception:
import path_config
from douyin.core import path_config
screenshot_path = path_config.get_screenshot_path()
@@ -3862,12 +3862,12 @@ def main():
preview_top.pack(fill=X, padx=10, pady=10)
try:
from path_config import get_pic_dir
from douyin.core.path_config import get_pic_dir
images_dir = get_pic_dir()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
images_dir = path_config.get_pic_dir()
@@ -4958,12 +4958,12 @@ def main():
def refresh_reservations():
try:
from path_config import get_reservations_path
from douyin.core.path_config import get_reservations_path
path = get_reservations_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
path = path_config.get_reservations_path()
try:
@@ -5233,12 +5233,12 @@ def main():
def refresh_high_value_rooms():
try:
from path_config import get_high_value_rooms_path
from douyin.core.path_config import get_high_value_rooms_path
path = get_high_value_rooms_path()
except Exception:
# 回退到旧路径(向后兼容)
import path_config
from douyin.core import path_config
path = path_config.get_high_value_rooms_path()
try:
@@ -5322,13 +5322,13 @@ def main():
"""读取 logs/actions.log 的尾部若干行,在 GUI 中展示关键行为日志(支持简单关键字筛选)。"""
# 使用统一的路径配置
try:
from path_config import get_actions_log_path
from douyin.core.path_config import get_actions_log_path
path = get_actions_log_path()
except Exception:
# 回退到旧路径(向后兼容)
# 修正路径:GUI应该读取根目录的logs/actions.log
import path_config
from douyin.core import path_config
path = path_config.get_actions_log_path()
try:
@@ -5582,11 +5582,11 @@ def main():
def scan_win_images():
"""扫描中奖截图目录"""
try:
from path_config import get_pic_dir
from douyin.core.path_config import get_pic_dir
pic_dir = get_pic_dir()
except Exception:
import path_config
from douyin.core import path_config
pic_dir = path_config.get_pic_dir()
@@ -5697,11 +5697,11 @@ def main():
def open_win_folder():
"""打开中奖截图目录"""
try:
from path_config import get_pic_dir
from douyin.core.path_config import get_pic_dir
pic_dir = get_pic_dir()
except Exception:
import path_config
from douyin.core import path_config
pic_dir = path_config.get_pic_dir()
@@ -5735,11 +5735,11 @@ def main():
def load_false_positives():
"""加载误识别记录"""
try:
from path_config import get_pic_dir
from douyin.core.path_config import get_pic_dir
pic_dir = get_pic_dir()
except Exception:
import path_config
from douyin.core import path_config
pic_dir = path_config.get_pic_dir()
@@ -5767,11 +5767,11 @@ def main():
def save_false_positives():
"""保存误识别记录"""
try:
from path_config import get_pic_dir
from douyin.core.path_config import get_pic_dir
pic_dir = get_pic_dir()
except Exception:
import path_config
from douyin.core import path_config
pic_dir = path_config.get_pic_dir()
@@ -5849,7 +5849,7 @@ def main():
if __name__ == "__main__":
try:
from version import print_version_banner
from douyin.core.version import print_version_banner
print_version_banner("gui_app")
except Exception:
+1 -1
View File
@@ -10,7 +10,7 @@ import time
from dataclasses import dataclass
from typing import Optional
import path_config
from douyin.core import path_config
CONFIG_PATH = path_config.get_config_path()
+4 -4
View File
@@ -17,7 +17,7 @@ project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if project_root not in sys.path:
sys.path.insert(0, project_root)
import path_config
from douyin.core import path_config
BASE_DIR = path_config.PROJECT_ROOT
CONFIG_PATH = path_config.get_config_path()
@@ -1359,7 +1359,7 @@ class ProcRunner:
# 启动时自动截图
if device_id:
try:
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
ops = underlying_operations()
self._append_log(f"[启动] 自动截图: device={device_id}")
@@ -2203,7 +2203,7 @@ class Handler(BaseHTTPRequestHandler):
body = self._read_json()
device_id = str(body.get("device_id") or "").strip()
try:
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
ops = underlying_operations()
result = ops.get_screenshot(device_id, use_service=False)
@@ -2249,7 +2249,7 @@ def main() -> int:
if __name__ == "__main__":
try:
from version import print_version_banner
from douyin.core.version import print_version_banner
print_version_banner("web_gui")
except Exception:
+1 -1
View File
@@ -19,7 +19,7 @@ from .screenshot_operations import (
# 从原文件导入以保持向后兼容
# TODO: 逐步迁移后改为从子模块导入
from Underlying_Operations import (
from douyin.core.underlying_operations import (
_safe_replace_file,
_ensure_parent_dir,
_mirror_screenshot_to_external,
+1 -1
View File
@@ -9,7 +9,7 @@ from typing import Any, Optional
# 临时导入:从原文件导入,后续会逐步迁移
# TODO: 迁移完成后,移除此导入并在此文件中实现
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
# 导出设备操作相关方法
# TODO: 实现这些函数后添加到__all__列表中
+1 -1
View File
@@ -9,7 +9,7 @@ from typing import Any, Optional, Tuple
# 临时导入:从原文件导入,后续会逐步迁移
# TODO: 迁移完成后,移除此导入并在此文件中实现
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
# 导出图像处理相关方法
# TODO: 实现这些函数后添加到__all__列表中
+3 -3
View File
@@ -185,7 +185,7 @@ def _ensure_ocr():
def analyse_pic_word(picname, change_color=0, pic_path=None):
"""文字OCR识别(向后兼容接口)"""
# 使用全局复用的 underlying_operations 实例,避免每次调用都初始化 OCR(耗时)
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
global _UNDERLYING_OPS_SINGLETON # type: ignore[name-defined]
try:
_UNDERLYING_OPS_SINGLETON # type: ignore[name-defined]
@@ -197,7 +197,7 @@ def analyse_pic_word(picname, change_color=0, pic_path=None):
def analyse_pic_digits(picname, change_color=1, pic_path=None):
"""数字OCR识别(向后兼容接口)"""
# 使用全局复用的 underlying_operations 实例,避免每次调用都初始化 OCR(耗时)
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
global _UNDERLYING_OPS_SINGLETON # type: ignore[name-defined]
try:
_UNDERLYING_OPS_SINGLETON # type: ignore[name-defined]
@@ -209,7 +209,7 @@ def analyse_pic_digits(picname, change_color=1, pic_path=None):
def extract_ocr_content(content=[], return_confidence=False):
"""提取OCR内容(向后兼容接口)"""
# 使用全局复用的 underlying_operations 实例
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
global _UNDERLYING_OPS_SINGLETON # type: ignore[name-defined]
try:
_UNDERLYING_OPS_SINGLETON # type: ignore[name-defined]
+6 -6
View File
@@ -13,7 +13,7 @@ import time
from datetime import datetime
from typing import Optional
from Underlying_Operations import _safe_replace_file, _mirror_screenshot_to_external
from douyin.core.underlying_operations import _safe_replace_file, _mirror_screenshot_to_external
# 日志节流:当后台服务不可用并回退到直接截图时,避免每次都打印相同的日志
_last_service_fallback_log_ts: float = 0.0
@@ -87,7 +87,7 @@ class ScreenshotOperations:
direct_start = time.time()
if path == "pic":
try:
import path_config
from douyin.core import path_config
out_dir = path_config.get_pic_dir()
except Exception: # type: ignore
# 回退到旧路径(向后兼容)
@@ -305,10 +305,10 @@ class ScreenshotOperations:
"""
# 搜索目录优先级
try:
import path_config
from douyin.core import path_config
pic_dir = path_config.get_pic_dir()
except Exception:
import path_config
from douyin.core import path_config
pic_dir = path_config.get_pic_dir()
search_dirs = []
@@ -340,7 +340,7 @@ class ScreenshotOperations:
"""裁剪图片:保持与原 fudai1.cut_pic 相同的坐标语义(1080x2400 基准)。"""
# 这里应该实现图片裁剪逻辑
# 暂时从原文件导入以保持功能
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
instance = underlying_operations()
return instance.cut_pic(left_up, right_down, target, name)
@@ -348,7 +348,7 @@ class ScreenshotOperations:
"""保存奖励图片"""
# 这里应该实现奖励图片保存逻辑
# 暂时从原文件导入以保持功能
from Underlying_Operations import underlying_operations
from douyin.core.underlying_operations import underlying_operations
instance = underlying_operations()
return instance.save_reward_pic(device_id)
+1 -1
View File
@@ -14,7 +14,7 @@ import threading
import time
from typing import Optional
from datetime import datetime
import path_config
from douyin.core import path_config
from operations.screenshot_operations import ScreenshotOperations
+1 -1
View File
@@ -7,7 +7,7 @@ import threading
import time
from typing import Optional
from datetime import datetime
import path_config
from douyin.core import path_config
from operations.screenshot_operations import ScreenshotOperations
-350
View File
@@ -1,350 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
恢复screenshot_service.py文件
"""
content = '''"""后台截图服务:持续截图,主流程直接读取最新截图
功能:
1. 后台持续截图,避免主流程等待
2. 截图缓存机制,减少重复截图
3. 智能线程数配置,根据CPU核心数自动调整
"""
from __future__ import annotations
import os
import threading
import time
from typing import Optional
from datetime import datetime
import path_config
from operations.screenshot_operations import ScreenshotOperations
class ScreenshotService:
"""后台截图服务:持续截图,避免主流程等待"""
_instance: Optional['ScreenshotService'] = None
_lock = threading.Lock()
def __init__(self):
self._running: bool = False
self._thread: Optional[threading.Thread] = None
self._screenshot_ops: ScreenshotOperations = ScreenshotOperations()
self._current_device_id: Optional[str] = None
# 修复:初始化为过去时间,确保第一次请求时缓存过期但时间差合理
self._last_screenshot_time = time.time() - 10.0 # 10秒前,避免巨大时间差
self._screenshot_interval = 3.5 # 增加间隔到3.5秒,适应实际截图耗时
self._cache_valid_duration = 4.0 # 增加缓存有效期到4.0秒,避免频繁过期
self._screenshot_path: Optional[str] = None
self._last_success = False # 最后一次截图是否成功
@classmethod
def get_instance(cls) -> 'ScreenshotService':
"""获取单例实例"""
if cls._instance is None:
with cls._lock:
if cls._instance is None:
cls._instance = cls()
return cls._instance
def start(self, device_id: str, interval: float = 1.5):
"""启动后台截图服务
参数:
device_id: 设备ID
interval: 截图间隔(秒),默认1.5秒
"""
with self._lock:
if self._running:
if self._current_device_id == device_id:
return # 已经在运行,且设备ID相同
self.stop() # 设备ID不同,先停止
self._current_device_id = device_id
self._screenshot_interval = max(0.5, interval) # 最小0.5秒
self._running = True
# 初始化截图路径
try:
self._screenshot_path = path_config.get_screenshot_path()
except (ImportError, AttributeError, OSError):
self._screenshot_path = os.path.join("pic", "screenshot.png")
self._thread = threading.Thread(
target=self._screenshot_loop,
daemon=True,
name="ScreenshotService"
)
self._thread.start()
# 修复:设置时间戳为过去足够长的时间,确保第一次请求能等到后台截图完成
self._last_screenshot_time = time.time() - self._cache_valid_duration - 1.0 # 确保缓存过期但不至于太旧
timetag = datetime.now().strftime("%H:%M:%S")
print(f"[{timetag}] [截图服务] 已启动后台截图服务,设备: {device_id}, 间隔: {interval}秒")
def stop(self):
"""停止后台截图服务"""
with self._lock:
if not self._running:
return
self._running = False
if self._thread and self._thread.is_alive():
self._thread.join(timeout=2.0)
timetag = datetime.now().strftime("%H:%M:%S")
print(f"[{timetag}] [截图服务] 已停止后台截图服务")
def _screenshot_loop(self):
"""后台截图循环"""
loop_count = 0
while self._running:
try:
device_id = self._current_device_id
if not device_id:
time.sleep(0.1)
continue
loop_count += 1
timetag = datetime.now().strftime("%H:%M:%S")
screenshot_start = time.time()
# 执行截图(禁用服务模式,避免递归)
success = self._screenshot_ops.get_screenshot(device_id, use_service=False) # type: ignore[arg-type]
screenshot_elapsed = (time.time() - screenshot_start) * 1000
if success:
# 验证文件完整性后再更新时间戳(避免读取到不完整的文件)
if self._screenshot_path and os.path.exists(self._screenshot_path):
try:
file_size = os.path.getsize(self._screenshot_path)
if file_size >= 1024:
with open(self._screenshot_path, 'rb') as f:
header = f.read(4)
if header == b'\\x89PNG':
self._last_screenshot_time = time.time()
self._last_success = True
print(f"[{timetag}] [截图服务] 后台截图完成 #{loop_count},耗时: {screenshot_elapsed:.0f}ms,文件大小: {file_size/1024:.1f}KB")
else:
self._last_success = False
print(f"[{timetag}] [截图服务] 后台截图文件格式错误 #{loop_count},耗时: {screenshot_elapsed:.0f}ms")
else:
self._last_success = False
print(f"[{timetag}] [截图服务] 后台截图文件太小 #{loop_count} ({file_size}B),耗时: {screenshot_elapsed:.0f}ms")
except (OSError, IOError, ValueError) as e:
self._last_success = False
print(f"[{timetag}] [截图服务] 后台截图文件验证失败 #{loop_count}: {e},耗时: {screenshot_elapsed:.0f}ms")
else:
self._last_success = False
print(f"[{timetag}] [截图服务] 后台截图文件不存在 #{loop_count},耗时: {screenshot_elapsed:.0f}ms")
else:
self._last_success = False
print(f"[{timetag}] [截图服务] 后台截图失败 #{loop_count},耗时: {screenshot_elapsed:.0f}ms")
# 等待间隔时间,确保不小于0.5秒
remaining_interval = max(0.5, self._screenshot_interval - screenshot_elapsed / 1000)
time.sleep(remaining_interval)
except Exception as e:
try:
timetag = datetime.now().strftime("%H:%M:%S")
print(f"[{timetag}] [截图服务] 后台截图异常: {e}")
import traceback
traceback.print_exc()
except Exception:
pass
time.sleep(1.0) # 异常时等待1秒再继续
def get_screenshot(self, device_id: str, force: bool = False) -> bool:
"""获取截图(优先使用缓存)
参数:
device_id: 设备ID
force: 是否强制重新截图(忽略缓存)
返回:
是否成功获取截图
"""
request_start = time.time()
timetag = datetime.now().strftime("%H:%M:%S")
# 如果设备ID不同,需要重新启动服务
if self._current_device_id != device_id:
print(f"[{timetag}] [截图服务] 设备ID变更,重新启动服务: {device_id}")
self.start(device_id)
# 等待第一次截图完成
time.sleep(0.1)
# 检查缓存是否有效
if not force:
now = time.time()
time_since_last = now - self._last_screenshot_time
# 修复:添加边界检查,避免负数或异常值
if time_since_last < 0:
time_since_last = 0 # 避免时钟回拨导致的负数
elif time_since_last > 86400: # 如果超过24小时,可能是时间戳错误
time_since_last = 10.0 # 重置为10秒前
# 检查缓存是否有效(时间 + 文件存在 + 文件完整性)
if time_since_last < self._cache_valid_duration:
if self._screenshot_path and os.path.exists(self._screenshot_path):
# 验证文件完整性(避免读取到不完整的文件)
# 使用重试机制,等待文件写入完成
for retry in range(3):
try:
file_size = os.path.getsize(self._screenshot_path)
if file_size >= 1024: # PNG文件至少1KB
# 尝试快速验证文件头(PNG文件头:89 50 4E 47)
with open(self._screenshot_path, 'rb') as f:
header = f.read(4)
if header == b'\\x89PNG':
# 验证文件尾(PNG文件尾:IEND)
# 更宽松的验证:检查文件末尾50字节内是否有IEND
try:
# 读取文件末尾50字节
read_size = min(50, file_size)
f.seek(-read_size, 2)
footer = f.read(read_size)
if b'IEND' in footer:
elapsed = (time.time() - request_start) * 1000
print(f"[{timetag}] [截图服务] [OK] 缓存命中,耗时: {elapsed:.1f}ms (距离上次截图: {time_since_last*1000:.0f}ms, 文件大小: {file_size/1024:.1f}KB)")
return True
elif retry < 2:
# 文件可能还在写入,等待一下
time.sleep(0.1)
continue
else:
print(f"[{timetag}] [截图服务] [WARN] 缓存文件不完整(文件尾验证失败),等待后台截图")
except (OSError, IOError) as e:
if retry < 2:
time.sleep(0.1)
continue
else:
print(f"[{timetag}] [截图服务] [WARN] 缓存文件读取失败: {e},等待后台截图")
else:
print(f"[{timetag}] [截图服务] [WARN] 缓存文件格式错误,等待后台截图")
break
else:
if retry < 2:
time.sleep(0.05)
continue
else:
print(f"[{timetag}] [截图服务] [WARN] 缓存文件太小 ({file_size}B),等待后台截图")
except (OSError, IOError) as e:
if retry < 2:
time.sleep(0.05)
continue
else:
print(f"[{timetag}] [截图服务] [WARN] 缓存文件检查失败: {e},等待后台截图")
except ValueError as e:
print(f"[{timetag}] [截图服务] [WARN] 缓存文件检查异常: {e},等待后台截图")
break
else:
print(f"[{timetag}] [截图服务] [WARN] 缓存文件不存在,等待后台截图")
else:
print(f"[{timetag}] [截图服务] [WARN] 缓存已过期 (距离上次: {time_since_last*1000:.0f}ms > {self._cache_valid_duration*1000:.0f}ms),等待后台截图")
# 缓存无效或强制刷新
if force:
print(f"[{timetag}] [截图服务] 强制刷新,忽略缓存")
# 等待后台截图完成
if self._running:
wait_start = time.time()
time_since_last_before_wait = time.time() - self._last_screenshot_time
# 修复:添加边界检查
if time_since_last_before_wait < 0:
time_since_last_before_wait = 0
elif time_since_last_before_wait > 86400:
time_since_last_before_wait = 10.0
print(f"[{timetag}] [截图服务] [WAIT] 缓存未命中,等待后台截图 (距离上次: {time_since_last_before_wait*1000:.0f}ms)")
# 等待最多6秒,让后台线程完成截图(适应较慢的截图操作)
max_wait_time = 6.0
while time.time() - wait_start < max_wait_time:
if self._last_screenshot_time > wait_start - 0.1:
# 截图已完成,验证文件完整性
if self._screenshot_path and os.path.exists(self._screenshot_path):
try:
file_size = os.path.getsize(self._screenshot_path)
if file_size >= 1024:
with open(self._screenshot_path, 'rb') as f:
header = f.read(4)
if header == b'\\x89PNG':
# 验证文件尾(更宽松的验证)
read_size = min(50, file_size)
f.seek(-read_size, 2)
footer = f.read(read_size)
if b'IEND' in footer:
wait_elapsed = (time.time() - wait_start) * 1000
total_elapsed = (time.time() - request_start) * 1000
status = "[OK]" if self._last_success else "[FAIL]"
print(f"[{timetag}] [截图服务] {status} 后台截图完成,等待耗时: {wait_elapsed:.1f}ms,总耗时: {total_elapsed:.1f}ms,文件大小: {file_size/1024:.1f}KB")
return self._last_success
# 文件尾验证失败,继续等待
# 文件太小或格式错误,继续等待
except (OSError, IOError, ValueError):
# 文件验证失败,继续等待
pass
time.sleep(0.1)
# 等待超时
wait_elapsed = (time.time() - wait_start) * 1000
print(f"[{timetag}] [截图服务] [TIMEOUT] 等待超时 ({wait_elapsed:.1f}ms),回退到直接截图")
# 如果后台服务未运行或等待超时,直接执行截图(禁用服务模式,避免递归)
direct_start = time.time()
result = self._screenshot_ops.get_screenshot(device_id, use_service=False) # type: ignore[arg-type]
direct_elapsed = (time.time() - direct_start) * 1000
total_elapsed = (time.time() - request_start) * 1000
status = "[OK]" if result else "[FAIL]"
print(f"[{timetag}] [截图服务] {status} 直接截图完成,耗时: {direct_elapsed:.0f}ms,总耗时: {total_elapsed:.1f}ms")
return result
def is_running(self) -> bool:
"""检查服务是否正在运行"""
return self._running
def get_last_screenshot_time(self) -> float:
"""获取最后一次截图的时间戳"""
return self._last_screenshot_time
def get_cache_info(self) -> dict:
"""获取缓存信息(用于调试)"""
return {
"running": self._running,
"device_id": self._current_device_id,
"last_screenshot_time": self._last_screenshot_time,
"interval": self._screenshot_interval,
"cache_valid_duration": self._cache_valid_duration,
"last_success": self._last_success,
}
def get_optimal_workers() -> int:
"""根据CPU核心数获取最优线程数
返回:
推荐的线程数
"""
cpu_count = os.cpu_count() or 4
# 针对12核CPU的优化配置
if cpu_count >= 12:
return 10 # 12核:使用10个线程
elif cpu_count >= 8:
return 8 # 8核:使用8个线程
elif cpu_count >= 4:
return 6 # 4核:使用6个线程
elif cpu_count >= 2:
return 3 # 2核:使用3个线程
else:
return 2 # 单核:使用2个线程(I/O等待)
'''
# 写入文件
with open('operations/screenshot_service.py', 'w', encoding='utf-8') as f:
f.write(content)
print('ScreenshotService file restored successfully')
+30 -13
View File
@@ -1,21 +1,38 @@
tools/scan_coords.py — 坐标/ROI 扫描工具
# tools/ 工具脚本目录
用途
按功能分组组织,与主代码分离。tools/ 不被业务代码 import。
- 扫描仓库中疑似硬编码坐标或裁剪区域(如 `(100, 200)`、`(x1,y1,x2,y2)`)的代码行。
- 输出 CSV 到 `tools/coords_report.csv`,便于人工或脚本进一步审查。
## 目录结构
用法
| 子目录 | 用途 | 典型脚本 |
|--------|------|----------|
| `diagnostics/` | 环境/配置/依赖诊断 | `check_system_config.py`、`check_dependencies.py`、`diagnose_runtime_flags.py` |
| `logs/` | 日志分析与查看 | `analyze_step_times.py`、`color_log_viewer.py`、`log_filter.py` |
| `coords/` | 坐标拾取与区域选择 | `pick_coords.py`、`region_selector.py`、`scan_coords.py` |
| `cleanup/` | 代码清理工具 | `cleanup_unused_files.py`、`fix_trailing_whitespace.py` |
| `adb/` | ADB / 输入法相关 | `auto_connect_wifi_adb.py`、`ADBKeyboard.apk` |
| `windows/` | Windows 系统修复脚本 | `fix_start_menu_win11.ps1` 等(与本项目无关,仅备份) |
| `dev/` | 开发辅助 / 运行时探测 | `param_usage_tool.py`、`simulate_swipe_trigger.py`、`merge_configs.py` |
## 常用入口
```powershell
python tools/scan_coords.py
# 系统/依赖诊断
python tools/diagnostics/check_system_config.py
python tools/diagnostics/check_dependencies.py
# 坐标扫描
python tools/coords/scan_coords.py
# 日志分析
python tools/logs/log_filter.py
python tools/logs/color_log_viewer.py
# 参数使用追踪
python tools/dev/param_usage_tool.py show --limit 200
```
输出
## 注意
- `tools/coords_report.csv` 包含字段:`file,line,match,context`。
注意
- 本脚本使用简单正则匹配,可能存在误报/漏报,建议在生成报告后人工复核。
- 可根据需要扩展正则或关键词列表以覆盖更多模式。
- `windows/` 下的脚本是本机环境的修复工具,与抖音挂机功能无关,保留作为环境备份。
- `coords/scan_coords.py` 输出 `tools/coords/coords_report.csv`(已 gitignore),人工核查用。
-7
View File
@@ -1,7 +0,0 @@
import sys
p = "douyin/other/douyin_yanghao.py"
with open(p, "rb") as f:
lines = f.read().splitlines()
for i in range(959, 979):
print(f"{i+1:4}: {lines[i]!r}")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -16,7 +16,7 @@ sys.path.insert(0, str(PROJECT_ROOT))
from douyin.logging import action_logger, douyin_logging_wrapper
from douyin.core.douyin_fudai import fudai_analyse
import path_config
from douyin.core import path_config
def safe_repr(obj):
File renamed without changes.
File renamed without changes.
@@ -16,11 +16,11 @@ if sys.platform == "win32":
pass
try:
import path_config
from douyin.core import path_config
CONFIG_PATH = path_config.get_config_path()
except Exception:
import path_config
from douyin.core import path_config
CONFIG_PATH = path_config.get_config_path()
Loaded 100 of 120 files, more files were not shown because too many files have changed in this diff. Show more