Add platform config website_url, admin tab, fix writer DB config fallback, add trigger endpoints

This commit is contained in:
Yuzhiran Dev
2026-05-20 09:38:56 +08:00
parent 55e5f3d166
commit 498165440f
84 changed files with 1988 additions and 242 deletions
+4 -2
View File
@@ -102,8 +102,10 @@ def run_pipeline(topic_id: str = None) -> Dict:
update_topic_status(tid, 'pending')
return {"ok": False, "error": "writer step failed"}
# 4. 配图生成
image_ok = run_step("image_generator.py", tid)
# 4. 配图生成AI版,失败时回退PIL版)
image_ok = run_step("ai_image_generator.py", tid)
if not image_ok:
image_ok = run_step("image_generator.py", tid)
# 5. 合规优化(自动审核并标记为「待发布」)
if not run_optimizer_step(tid):