Files
yu-zhi-ran/config/wecom_config.yaml
T
lt 277b13eaae feat: 完成布局优化 - 操作列固定、批量按钮自适应、分类标签带数量
优化内容:
1. 表格布局:
   - 使用 calc(100vw - 160px) 确保表格不超出视口
   - 操作列 fixed='right' 固定在右侧,宽度 300px
   - 按钮 3 个后自动换行 (max-width: 200px)
   - 恢复合理列宽,不再过度压缩

2. 批量操作区域:
   - 容器改为 inline-block,宽度自适应按钮内容
   - 背景宽度与按钮总宽度匹配

3. 分类标签:
   - 显示数量 (如 '待处理 (20)')
   - 点击切换筛选,去掉误导的 'X' 图标

4. 删除功能:
   - 操作列增加删除按钮
   - 删除前弹出确认对话框

5. 系统日志:
   - 修复后端日志路径 (parents[4])
   - 404 时显示友好提示

6. 其他:
   - 左侧菜单宽度 160px
   - 所有功能保留 (登录、用户管理、批量操作等)
2026-04-27 11:32:17 +08:00

89 lines
2.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 消息推送配置
notification_channel: feishu # 推送渠道: wecom 或 feishu
wecom:
# 推送目标:用户 ID(飞书 open_id 或企业微信 userid
target_user: "ou_415e2d4089eec5640f3f364116c59c06"
# 推送格式
message_template:
header: ""
footer: ""
max_length: 2000
# 图片规格配置(三种平台)
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:
daily_summary: |
【宇之然日报】{{DATE}}
✅ 已发布 {{PUBLISHED_COUNT}} 篇文章
📦 平台:{{PLATFORMS}}
📁 发布包:{{PUBLISH_DIR}}
——————————
全流程结束, awaiting tomorrow's run.