mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-31 05:59:51 +08:00
* feat(notice): 添加WebSocket独立通知功能并重构通知系统 - 实现WebSocket通知功能,支持私聊和群聊模式 - 添加通知类型配置选项,支持BGI通知、独立通知或两者同时使用 - 新增WebSocket相关配置项包括代理URL、连接地址和认证令牌 - 重构通知发送逻辑,支持多种通知类型的消息格式 - 添加@用户功能和多种消息类型支持 - 更新manifest.json添加网络请求权限配置 - 优化代码结构,使用异步初始化加载工具模块 * feat(ActivitySwitchNotice): 添加独立通知功能支持WebSocket推送 - 新增独立通知配置功能,支持通过WebSocket发送通知 - 新增ws.js模块实现WebSocket通知功能 - 新增noticeType配置选项用于选择通知模式 - 新增ws_proxy_url、ws_url、ws_token配置选项 - 新增action、send_id、at_list配置选项用于发送设置 - 更新README文档添加独立通知配置说明和使用要求 - 修复OCR识别函数名称从OcrRemainingTime改为OcrKey * fix(ActivitySwitchNotice): 修复设置选项数组格式 - 修复了通知模式选项数组中缺少逗号的问题 - 确保JSON格式正确性以避免解析错误 * refactor(notice): 重构通知工具类并修复配置引用问题 - 将 noticeUtil.send 方法重命名为 sendText 以明确功能 - 修复配置对象引用问题,将 config 重命名为 configNotice 避免冲突 - 为 sendNotice 函数添加默认参数和调试日志 - 更新条件判断逻辑,使用 map.size 检查空值 - 修复 ws 模块中的配置对象引用,将 config 重命名为 configWs - 重构 ws 模块初始化逻辑,确保配置正确加载 - 修复变量命名冲突,将 token 参数重命名为 wsToken - 更新模块初始化顺序,调整 activity 工具的加载位置 * docs(ActivitySwitchNotice): 更新文档说明独立通知配置和WsProxy部署 - 更新独立通知功能说明,添加WsProxy依赖提示 - 简化settings.json文件路径引用 - 移除多余的配置示例分隔符 - 添加WsProxy部署指南和Docker镜像使用说明 - 整理文档结构,优化内容排版 * docs(ActivitySwitchNotice): 更新 README 文档完善功能说明和配置选项 - 添加了独立通知功能的详细配置说明 - 更新了设置表格格式和内容描述 - 增加了 WsProxy 部署指南和 Docker 配置示例 - 完善了核心模块和配置选项文档 - 修正了文档格式和链接引用问题 * docs(ActivitySwitchNotice): 更新 README 文档中的链接和函数名 - 修复 settings.json 链接格式 - 将 send 函数名更正为 sendText * chore(ActivitySwitchNotice): 更新版本号 - 将版本号从 0.0.3 更新到 0.4 - 保持其他配置项不变 * docs(ActivitySwitchNotice): 更新版本历史文档 - 将版本 0.0.4 的发布状态更新为具体发布日期 2026-01-01 - 保持独立通知配置功能说明 - 保留 WebSocket 通知功能描述 - 维护版本历史记录的准确性
103 lines
2.7 KiB
JSON
103 lines
2.7 KiB
JSON
[
|
||
{
|
||
"name": "toMainUi",
|
||
"type": "checkbox",
|
||
"label": "启用先返回主界面后执行切换",
|
||
"default": true
|
||
},
|
||
{
|
||
"name": "noticeType",
|
||
"type": "select",
|
||
"label": "通知模式(默认BGI通知-使用独立通知需要开启JS HTTP权限)",
|
||
"options": [
|
||
"BGI通知",
|
||
"独立通知",
|
||
"独立通知和BGI通知",
|
||
],
|
||
"default": "BGI通知"
|
||
},
|
||
{
|
||
"name": "relationship",
|
||
"type": "checkbox",
|
||
"label": "剩余时间,白名单 启用`和`关系(默认`或`关系)",
|
||
"default": false
|
||
},
|
||
{
|
||
"name": "whiteActivityNameList",
|
||
"type": "input-text",
|
||
"label": "白名单活动名称(使用|分割)<可不填 默认推送所有有剩余时间的活动>"
|
||
},
|
||
{
|
||
"name": "blackActivityNameList",
|
||
"type": "input-text",
|
||
"label": "黑名单活动名称(使用|分割)<可不填,默认没有不推送的活动>"
|
||
},
|
||
{
|
||
"name": "notifyHoursThreshold",
|
||
"type": "input-text",
|
||
"label": "通知剩余时间阈值<单位:小时>(默认 8760小时=365天)",
|
||
"default": "8760"
|
||
},
|
||
{
|
||
"name": "activityKey",
|
||
"type": "input-text",
|
||
"label": "打开活动页面按键(不填,默认:F5)",
|
||
"default": "F5"
|
||
},
|
||
{
|
||
"name": "campaignAreaReminderDay",
|
||
"type": "select",
|
||
"label": "周本提醒日(0-6,0=周日,1=周一,2=周二,3=周三,4=周四,5=周五,6=周六)",
|
||
"options": [
|
||
"0","1","2","3","4","5","6"
|
||
],
|
||
"default": "0"
|
||
},
|
||
{
|
||
"name": "campaignAreaKey",
|
||
"type": "input-text",
|
||
"label": "打开冒险之证按键(不填,默认:F1)",
|
||
"default": "F1"
|
||
},
|
||
{
|
||
"name": "ws_proxy_url",
|
||
"type": "input-text",
|
||
"label": "独立通知配置:\n==============================\nWebSocketProxyUrl(列:http://127.0.0.1:8081/ws-proxy/message/send)",
|
||
"default": "http://127.0.0.1:8081/ws-proxy/message/send"
|
||
},
|
||
{
|
||
"name": "ws_url",
|
||
"type": "input-text",
|
||
"label": "WebSocket客户端 Url(列:ws://127.0.0.1:8080)",
|
||
"default": "ws://127.0.0.1:8080/"
|
||
},
|
||
{
|
||
"name": "ws_token",
|
||
"type": "input-text",
|
||
"label": "WebSocket客户端 token(没有可不填)",
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "action",
|
||
"type": "select",
|
||
"label": "发送类型",
|
||
"options": [
|
||
"私聊",
|
||
"群聊"
|
||
],
|
||
"default": "私聊",
|
||
},
|
||
{
|
||
"name": "send_id",
|
||
"type": "input-text",
|
||
"label": "(发送id 群号|QQ号 对应发送类型)",
|
||
"default": ""
|
||
},
|
||
{
|
||
"name": "at_list",
|
||
"type": "input-text",
|
||
"label": "@某人列表使用,隔开(QQ号)",
|
||
"default": ""
|
||
},
|
||
]
|