修复福袋详情OCR v2与调试日志
This commit is contained in:
1 parent
2c6f024a24
commit
1d37d57c90
119 files changed
+5582
-767
No files matched your search
@@ -328,6 +328,12 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
|
||||
default=None,
|
||||
help="仅在 --yanghao-only 时有效:覆盖推荐页养号停留秒数",
|
||||
)
|
||||
p.add_argument(
|
||||
"--reenter-live-entry-mode",
|
||||
choices=["follow_list", "screen_center"],
|
||||
default=None,
|
||||
help="重新进入直播间点击模式:follow_list=关注列表坐标,screen_center=屏幕中心坐标",
|
||||
)
|
||||
|
||||
return p.parse_args(argv)
|
||||
|
||||
@@ -609,6 +615,14 @@ def main(argv: list[str]) -> int:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
if getattr(args, "reenter_live_entry_mode", None) is not None:
|
||||
try:
|
||||
analyser.reenter_live_entry_mode = str(
|
||||
args.reenter_live_entry_mode or "follow_list"
|
||||
).strip().lower()
|
||||
except Exception:
|
||||
analyser.reenter_live_entry_mode = "follow_list"
|
||||
|
||||
device_id = args.device_id.strip() if args.device_id else ""
|
||||
if not device_id:
|
||||
device_id = analyser.operation.select_device()
|
||||
|
||||
Reference in new issue
Block a user