feat: 增强福袋参与和预约管理功能,添加统计记录和优化配置参数
This commit is contained in:
1 parent
c0df59ac26
commit
6b9b02bd58
8 files changed
+265
-225
No files matched your search
-14
@@ -199,12 +199,6 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
|
||||
action="store_true",
|
||||
help="仅回访本次运行记录的高价值直播间",
|
||||
)
|
||||
p.add_argument(
|
||||
"--high-value-room-revisit-interval-seconds",
|
||||
type=int,
|
||||
default=None,
|
||||
help="高价值直播间回访间隔(秒),用于覆盖配置中的回访间隔",
|
||||
)
|
||||
p.add_argument(
|
||||
"--reservation-back-verify-enabled",
|
||||
action="store_true",
|
||||
@@ -471,14 +465,6 @@ def main(argv: list[str]) -> int:
|
||||
analyser.high_value_room_revisit_enabled = False
|
||||
if getattr(args, "high_value_room_revisit_only_current_run", False):
|
||||
analyser.high_value_room_revisit_only_current_run = True
|
||||
# 回访间隔覆盖(秒)
|
||||
if getattr(args, "high_value_room_revisit_interval_seconds", None) is not None:
|
||||
try:
|
||||
analyser.high_value_room_revisit_interval_seconds = max(
|
||||
0, int(args.high_value_room_revisit_interval_seconds)
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
# 预约回退校验开关(命令行优先)
|
||||
if getattr(args, "reservation_back_verify_enabled", False):
|
||||
analyser.reservation_back_verify_enabled = True
|
||||
|
||||
Reference in new issue
Block a user