feat(评论/账号): 自动评论导入 + 账号导出 + 切号参数全局化

- 新表 comment_item(schema v25):视频链接/账号/评论内容/状态
- 新步骤 foreach_comment / mark_comment;clipboard 支持评论变量;input_text 支持当前评论内容
- 计划调度页导入评论、查看/重置/裁决评论数据
- 资产管理导出账号列表 + 自动/人工/有效状态 CSV
- 切号参数全局化:fleet.switch 统一选择器,计划默认 use_global=true,老计划也按全局
- 测试 19/19;API/DATA_MODEL/TASK_DEV/ACCOUNT_FOLDER/CHANGES 同步
This commit is contained in:
2026-10-31 09:18:15 +08:00
parent 0673fa678b
commit 7edb9f6a94
24 changed files with 1542 additions and 82 deletions
+4
View File
@@ -197,6 +197,10 @@ def clean_ready(r):
out = {"enabled": bool(r.get("enabled", True))}
except Exception:
out = {"enabled": True}
# 2026-10-31:内置切号默认用**全局参数**;只有明确 use_global=false 的旧/新建计划
# 才读取下面的覆盖字段。老计划没有这个键 → 按全局走(不用逐个改)。
ug = r.get("use_global")
out["use_global"] = (str(ug).lower() not in ("false", "0")) if ug is not None else True
for k in READY_STR_FIELDS:
if k in r and r.get(k) is not None:
out[k] = str(r.get(k) or "").strip()[:500]