补齐插件默认配置并消除启动缺失告警
变更项:\n1. 新增 epic_free 默认配置文件,补充调度与 Epic 参数默认值。\n2. 新增 daily_ranking 默认配置文件,补充排行参数默认值。\n3. 新增 daily_news 默认配置文件,补充新闻源默认值。\n4. 新增 sehuatang_push 默认配置文件,补充推送默认参数。\n5. 全部配置文件加入中文注释,便于后续后台统一维护与扩展。
This commit is contained in:
12
plugins/daily_news/config.toml
Normal file
12
plugins/daily_news/config.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
# 每日新闻插件默认配置
|
||||
# 说明:
|
||||
# 1. 该文件用于提供默认配置,减少启动阶段的缺失配置告警。
|
||||
# 2. 新闻抓取源在代码中存在兜底逻辑,此处可作为后台参数化扩展入口。
|
||||
|
||||
[general]
|
||||
# 是否启用插件:true 启用,false 禁用
|
||||
enabled = true
|
||||
|
||||
[news]
|
||||
# 60s 热点新闻接口地址(可按需替换为你自己的新闻源)
|
||||
api_60s_url = "https://api.03c3.cn/api/zb"
|
||||
12
plugins/daily_ranking/config.toml
Normal file
12
plugins/daily_ranking/config.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
# 每日活跃排行插件默认配置
|
||||
# 说明:
|
||||
# 1. 用于提供插件默认配置,避免启动时出现“配置文件不存在”的提示。
|
||||
# 2. 业务参数后续可由后台任务配置覆盖,此处作为兜底默认值。
|
||||
|
||||
[general]
|
||||
# 是否启用插件:true 启用,false 禁用
|
||||
enabled = true
|
||||
|
||||
[ranking]
|
||||
# 默认展示排行人数上限(仅作为默认参考值)
|
||||
top_limit = 10
|
||||
24
plugins/epic_free/config.toml
Normal file
24
plugins/epic_free/config.toml
Normal file
@@ -0,0 +1,24 @@
|
||||
# Epic 免费游戏推送插件默认配置
|
||||
# 说明:
|
||||
# 1. 该文件用于提供插件默认配置,避免启动时因缺少配置文件产生告警日志。
|
||||
# 2. 当前插件核心调度参数主要来自任务上下文 payload,此处提供统一默认值,便于后续后台配置对齐。
|
||||
|
||||
[general]
|
||||
# 是否启用插件:true 启用,false 禁用
|
||||
enabled = true
|
||||
|
||||
[schedule]
|
||||
# 任务默认执行时间(24 小时制),用于后台初始化或人工参考
|
||||
default_times = ["09:00"]
|
||||
|
||||
[epic]
|
||||
# Epic 商店本地化语言,例如:zh-CN / en-US
|
||||
locale = "zh-CN"
|
||||
# 商店国家/地区代码,例如:CN / US
|
||||
country = "CN"
|
||||
# 允许推送的国家/地区代码(逗号分隔),默认与 country 保持一致
|
||||
allow_countries = "CN"
|
||||
# 是否包含“即将免费”的游戏信息
|
||||
include_upcoming = true
|
||||
# 是否仅在内容变化时推送,避免重复打扰
|
||||
only_on_change = true
|
||||
12
plugins/sehuatang_push/config.toml
Normal file
12
plugins/sehuatang_push/config.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
# 色花堂推送插件默认配置
|
||||
# 说明:
|
||||
# 1. 补齐默认配置文件,避免启动日志中出现“配置文件不存在”提示。
|
||||
# 2. 插件运行时可从任务 payload 读取参数,此处提供统一默认值作为兜底。
|
||||
|
||||
[general]
|
||||
# 是否启用插件:true 启用,false 禁用
|
||||
enabled = true
|
||||
|
||||
[push]
|
||||
# 默认 @ 的用户名(可在后台任务 payload 中覆盖)
|
||||
at_user = "Jyunere"
|
||||
Reference in New Issue
Block a user