feat: 优化安全数据处理逻辑,确保 detail 数据的稳定性和类型安全
This commit is contained in:
1 parent
0b50017c25
commit
c0df59ac26
7 files changed
+97
-121
No files matched your search
+14
@@ -199,6 +199,12 @@ 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",
|
||||
@@ -465,6 +471,14 @@ 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