feat(计划): 评论计划勾选项 + 待评论计数

- ae_plan 新增 comment_mode(schema v26)
- 计划编辑器勾「评论计划」:账号显示待评论 N、隐藏视频未发/素材区,段内禁止发布素材
- list_accounts 带 comment_pending;comment.pending_counts 按账号汇总
- 计划列表显示评论待处理总数与「评论」标签
- 测试 test_comment/test_plan
This commit is contained in:
2026-10-31 10:12:34 +08:00
parent d5114dbf53
commit b9bee52878
11 changed files with 134 additions and 19 deletions
+1
View File
@@ -279,6 +279,7 @@
| `app_id` / `action_id` | **主 App + 老字段**:`action_id` 仍指向一个业务动作组(`segments` 为空时用它跑;非空时保存第一段,兼容老页面)。也是"删组合前提示引用"的引用点 |
| **`ready`** | **内置「账号就绪(切号)」的参数覆盖**(2026-10-18 新增):`{"enabled":true,"use_global":true,"switch_selector_type","switch_selector_value","me_selector_type","me_selector_value","name_selector_type","name_selector_value","timeout","wait_after","max_attempts","on_login_page","on_fail"}`;**2026-10-31 起默认 `use_global=true`** → 用全局 `ae_profile.params.fleet.switch`(`GET /api/af/ready_defaults`),老计划没有该字段也按全局走;只有显式 `use_global=false` 才用本计划覆盖。`enabled=false` = 关闭内置切号(由用户在自己的编排里放切号动作组) |
| **`segments`** | **动作编排**(2026-10-17 新增,2026-10-18 支持任务段):`[{"source":"action|task","action_id","task_id","app_id","name","publish","per_account","loop":{"mode":"none|rounds|time","rounds","seconds"},"home_before":"none|click|cold","home_after":…,"when":{"mode":"none|exists|missing","selector_type","selector_value","what"}}]` —— 一个账号按顺序跑多段;**action** = 引用动作组,**task** = 只取任务步骤(触发时现读、拆掉任务最外层 `foreach_account`);`publish=true` 的段走素材池(任务段通常不用) |
| `comment_mode` | **评论计划标记**(2026-10-31,v26):勾选后页面按 `comment_item` 显示「待评论 N」,不再显示视频「未发 N」;执行仍由任务里的 `foreach_comment` 取数,本字段不影响调度 |
| `account_ids` / `accounts` | **给谁干**:账号库手选的 id + 名字快照(名字是真相,触发时现算在哪台手机) |
| `material` | **发什么**:`{"mode":"pool|pick","per_account":N,"ids":[…],"date_source","fixed_date"}`;每段自己的条数在 `segments[].per_account`(0 = 全发),`ids` 只作用于**第一个发布段**(逐条按 id 占位,取不到就跳过) |
| `schedule` | **什么时候**:`{"points": ["21:00"], "jitter_sec": 600, "date_from", "date_to", "window"}` |