fix: 今日新增筛选统计不准 + LLM提示词动态当前日期 + 微信配图按选题生成

topics.html:
- 今日新增筛选时全量拉取 allTopics 用于保持 stats 统计正确,todayTopics
  存储服务端日期过滤结果
- filteredTopics 对 'today' 返回 todayTopics,不按不存在的 status 过滤

writer.py/research.py/outline.py:
- 所有 LLM 提示词注入今天的动态年月日(datetime.now)
- 禁用过时数据的年份改为动态 {当前年-1}-{当前年}
- 每个论点必须配真实最新案例+数据来源

writer.py WeChat 配图:
- 从 null placeholder 改为动态 SVG,展示选题标题+领域
- 标题自动换行(24字/行),附蓝色装饰条 + 渐变背景
This commit is contained in:
Yuzhiran Dev
2026-05-18 06:25:47 +08:00
parent bb50d5d925
commit 52564ad036
59 changed files with 1361 additions and 40 deletions
@@ -0,0 +1,36 @@
[
{
"id": "GLO-001",
"country": "Japan",
"category": "城市农业",
"title": "东京垂直农场:10平米 balcony 年产蔬菜 100kg",
"core_idea": "利用多层种植架和 LED 生长灯,在狭小阳台实现全年蔬菜生产",
"data_facts": "每平米年产 10kg,较传统方式节水 90%,投资回收期 1.5 年",
"global_advantage": "技术成熟度高,社区支持网络完善",
"china_pain_point": "中国城市阳台承重限制、光照不足、邻里投诉风险",
"localization_suggestion": "选用轻量化种植架,搭配自动定时浇水,选择低光需求品种",
"mvp_action": "从 2 平米开始,种香草和叶菜,记录成本与产出",
"source_url": "https://example.com/tokyo-vertical-farm",
"credibility_rating": "⭐⭐⭐⭐⭐",
"china_applicability": "⭐⭐⭐",
"collection_date": "2026-04-19",
"status": "已验证"
},
{
"id": "CHN-001",
"country": "China",
"category": "城市农业",
"title": "上海阳台种菜年省 3000 元:居民自种调查",
"core_idea": "利用阳台空间种菜,实现部分蔬菜自给,降低生活成本",
"data_facts": "20 平米阳台年产蔬菜 100kg,节省买菜支出 3000 元,投入成本 2000 元",
"global_advantage": "中国城市人口密集,阳台空间普遍存在",
"china_pain_point": "缺乏种植知识,病虫害防治困难,物业可能干涉",
"localization_suggestion": "选择易种品种(番茄、辣椒、生菜),使用有机土,与邻居共享收获",
"mvp_action": "先种 5 盆香草,成功后再扩大",
"source_url": "https://www.bilibili.com/video/BV1xx411",
"credibility_rating": "⭐⭐⭐",
"china_applicability": "⭐⭐⭐⭐⭐",
"collection_date": "2026-04-19",
"status": "已验证"
}
]
@@ -0,0 +1,32 @@
[
{
"id": "TOPIC-6DC1D7",
"title": "从东京垂直农场:10平米 bal到上海阳台种菜年省 3000 元: 城市农业的中国实践指南",
"cases": [
"GLO-001",
"CHN-001"
],
"audience": "城市焦虑青年(26-35岁)",
"china_pain_points": "城市农业在中国面临的主要问题",
"localization_solution": "国际案例中国化适配方案",
"mvp_actions": "读者可立即尝试的3个行动",
"estimated_length": 2500,
"priority_score": 8,
"field": "可持续生活系统",
"format": "趋势洞察 + 实操指南",
"core_concept": "基于2个城市农业案例,提炼本土化落地策略",
"audience_pain": "城市农业领域常见的痛点与困惑",
"unique_angle": "国际案例本土化:东京垂直农场:10平米 balcony 年产蔬菜 100kg与上海阳台种菜年省 3000 元:居民自种调查的中国实践",
"priority": "中",
"total_score": 80,
"compliance_score": 100,
"source_file": "automation/data/sustainability_topics.json",
"ready_at": null,
"published_at": null,
"platform_urls": {},
"status": "待处理",
"lock_by": null,
"lock_at": null,
"created_at": "2026-05-16T01:31:16.746722"
}
]