fix(计划): 通用步骤计划不再按待发素材数跳过账号

- foreach_account 新增 require_pending(默认 True,发布流程不变)
- build_segmented_steps 只要有段 publish=false 就设 False:
  每个号跑一遍 children,哪怕当天没有未发布素材
- 修复「检测账号」只执行亮屏的问题;补测试与文档
This commit is contained in:
2026-10-21 14:47:19 +08:00
parent a303855fee
commit 70959f5948
6 changed files with 70 additions and 8 deletions
+4
View File
@@ -1964,6 +1964,10 @@ def build_segmented_steps(app_row, segments, prof, account="", opts=None):
fa["params"]["accounts"] = accounts
fa["params"]["retry_failed"] = True
fa["params"]["max_accounts"] = 0
# 只有**每一段都发布素材**时才按"待发素材数"提前跳过账号;
# 只要有一段是通用步骤(创作者中心/评论/浏览…),当天没有未发布素材也要跑。
fa["params"]["require_pending"] = bool(segments) and all(
bool(s.get("publish")) for s in segments)
return lead + [fa]