Initial commit: yu-zhi-ran platform with automation integration

This commit is contained in:
lt
2026-04-19 14:05:09 +08:00
commit 3cb2df51c8
209 changed files with 80379 additions and 0 deletions
+108
View File
@@ -0,0 +1,108 @@
# 企业微信推送配置
wecom:
# 推送目标:用户 WangLiuTong
target_user: "WangLiuTong"
# 推送格式
message_template:
header: "【宇之然自动推送】"
footer: "详情请查看项目目录"
max_length: 2000 # 企业微信消息长度限制
# 推送内容类型
allowed_content_types:
- "选题发现"
- "案例更新"
- "文章发布"
- "系统状态"
# 图片规格配置(三种平台)
image_specs:
zhihu:
width: 1200
height: 675 # 16:9
format: "png"
quality: 85
banner_size: "封面图: 1200x675, 正文内嵌: 900xauto"
wechat:
width: 900
height: 1200 # 3:4 (移动端竖屏)
format: "png"
quality: 85
banner_size: "封面图: 900x383, 正文内嵌: 自适应宽度(最大900)"
xiaohongshu:
width: 1200
height: 1600 # 3:4
format: "png"
quality: 90
banner_size: "封面图: 1200x1600, 详图文: 1200x1600"
# HTML模板路径
templates:
base: "automation/templates/base.html"
zhihu: "automation/templates/zhihu.html"
wechat: "automation/templates/wechat.html"
xiaohongshu: "automation/templates/xiaohongshu.html"
# 输出目录结构
output:
daily_drafts: "automation/data/drafts/drafts_{{DATE}}/"
published_releases: "automation/data/published/releases_{{DATE}}/"
images: "automation/images/generated/{{DATE}}/"
logs: "automation/logs/"
# 内容创作规则
content_rules:
zhihu:
max_length: 3000
min_length: 1500
requires_tags: true
tag_count: 3-5
requires_summary: true
summary_length: 100-200
wechat:
max_length: 2500
min_length: 800
requires_cover_image: true
requires_abstract: true
abstract_length: 50-200
allow_emoji: true
xiaohongshu:
max_length: 1000
min_length: 500
requires_multiple_images: true # 小红书图文笔记
image_count: 3-9
requires_hashtags: true
hashtag_count: 5-10
tone: "生活化、亲切、有价值"
# 企业微信推送模板
notification_templates:
sustainability_task_complete: |
【可持续性内容收集完成】
时间: {{TIME}}
新增选题数: {{TOPIC_COUNT}}
新增案例数: {{CASE_COUNT}}
信息源: {{SOURCE_COUNT}}个
详情: {{DETAILS_LINK}}
content_creation_complete: |
【内容创作完成】
时间: {{TIME}}
选题: {{TOPIC_TITLE}}
平台版本: 知乎、公众号、小红书
图片数: {{IMAGE_COUNT}}
文件位置: {{OUTPUT_DIR}}
状态: {{STATUS}}
system_error: |
【定时任务异常】
任务: {{TASK_NAME}}
错误: {{ERROR}}
时间: {{TIME}}
请检查日志: {{LOG_PATH}}