fix(计划): 构建计划时读取 ae_profile 全局切号参数

- 新增 account_folder.current_profile()(读库 + 合并默认值)
- build_plan_job / ready_defaults 改用它,页面保存的切号选择器真正生效
- 手动按设备/账号跑也回落到 db 配置
- test_plan 增加 ae_profile 全局参数回归
This commit is contained in:
2026-10-31 09:22:26 +08:00
parent 7edb9f6a94
commit d5114dbf53
5 changed files with 52 additions and 7 deletions
+4 -3
View File
@@ -594,11 +594,12 @@ def build_plan_job(plan, device, plan_run_id=""):
if segs:
opts["segment_apps"] = seg_apps
steps = af.build_segmented_steps(app_row.to_dict(), enriched,
af.merged(), account=device["accounts"][0],
opts=opts)
af.current_profile(),
account=device["accounts"][0], opts=opts)
else:
steps = af.build_run_steps(app_row.to_dict(), act.to_dict(),
af.merged(), account=device["accounts"][0], opts=opts)
af.current_profile(),
account=device["accounts"][0], opts=opts)
try:
miss_limit = max([int(e.get("miss_limit") or 0) for e in enriched] or [0])
except (TypeError, ValueError):