mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-04-28 23:09:50 +08:00
* refactor(ActivitySwitchNotice): 优化通知配置构建逻辑 - 将 configNotice 变量改为 let 声明以支持动态更新 - 新增 async 函数 buildConfigNotice 用于构建通知配置 - 在 sendNotice 函数中调用 buildConfigNotice 确保配置最新 - 在 sendText 函数中添加 buildConfigNotice 调用保证配置同步 * refactor(utils): 导出工具函数并移除全局挂载 - 将 activity.js 中的 activityMain 函数改为导出函数 - 将 campaignArea.js 中的 ocrDailyCommission、ocrWeeklyCount、campaignAreaMain、dailyCommissionMain 函数改为导出函数 - 将 mapMission.js 中的 ocrMapMission、openMap、mapMission 函数改为导出函数 - 将 tool.js 中的 findTextAndClick、getDayOfWeek 函数改为导出函数 - 将 uid.js 中的 saveOnlyNumber、ocrUID、compareUid、checkUid、check 函数改为导出函数 - 将 ws.js 中的 send、sendText 函数改为导出函数 - 移除所有 utils 文件中对 this 对象的挂载操作 - 在 main.js 中导入新的工具函数并移除重复定义的函数 * fix(ActivitySwitchNotice): 修复圣遗物空间检查功能中的显示和逻辑问题 - 修正圣遗物空间不足提醒消息中的标点符号格式 - 修复圣遗物空间阈值错误日志中的数字格式 - 移除不必要的延时操作以优化执行效率 - 调整代码结构以提高运行性能 fix(ActivitySwitchNotice): 修复圣遗物空间检查功能中的显示和逻辑问题 - 修正圣遗物空间不足提醒消息中的标点符号格式 - 修复圣遗物空间阈值错误日志中的数字格式 - 移除不必要的延时操作以优化执行效率 - 调整代码结构以提高运行性能 refactor(ActivitySwitchNotice): 优化圣遗物检查功能中的延迟配置 - 将硬编码的延迟时间替换为可配置的常量 - 统一延迟时间管理,提高代码可维护性 - 保持原有功能逻辑不变的情况下提升代码质量 feat(ActivitySwitchNotice): 更新版本并新增圣遗物空间检测提醒功能 - 将插件版本从 0.1.3 更新至 0.1.5 - 新增圣遗物剩余空间检测提醒功能 - 在版本历史中添加 0.1.5 版本记录 fix(ActivitySwitchNotice): 修复圣遗物剩余空间阈值解析错误 - 添加 try-catch 块处理 parseInt 异常情况 - 当阈值格式错误时默认使用 400 的阈值 - 添加警告日志记录格式错误的阈值设置 - 确保程序在无效配置下仍能正常运行 feat(bag): 添加圣遗物背包空间检查功能 - 新增 HolyRelics.js 工具模块实现圣遗物数量检查逻辑 - 集成 OCR 识别功能用于获取圣遗物数量信息 - 添加背包空间不足提醒功能,可自定义阈值 - 在 main.js 中集成圣遗物检查流程 - 添加新的配置选项包括打开背包按键和圣遗物阈值设置 - 扩展工具类增加 findText、findImg 和 OcrFind 等通用识别方法 - 实现自动打开背包并处理过期物品弹窗功能 * fix(HolyRelics): 修复圣遗物背包空间检测功能 - 添加了进入圣遗物背包的点击状态验证,避免无法进入时继续执行 - 增强了OCR文本解析逻辑,添加了字符串分割长度验证和数值解析校验 - 优化了阈值参数解析,在main.js中添加了更安全的数值转换和错误处理 - 修复了工具函数中资源释放问题,在isInMainUI函数中使用try-finally确保资源被正确释放 - 更新了提醒消息文本,明确标识阈值设置参数
205 lines
5.1 KiB
JSON
205 lines
5.1 KiB
JSON
[
|
||
{
|
||
"name": "toMainUi",
|
||
"type": "checkbox",
|
||
"label": "启用先返回主界面后执行切换",
|
||
"default": true
|
||
},
|
||
{
|
||
"name": "noticeType",
|
||
"type": "select",
|
||
"label": "通知模式(默认BGI通知-使用独立通知需要开启JS HTTP权限)",
|
||
"options": [
|
||
"BGI通知",
|
||
"独立通知",
|
||
"独立通知和BGI通知"
|
||
],
|
||
"default": "BGI通知"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"name": "newActivityNotice",
|
||
"type": "checkbox",
|
||
"label": "启用新活动通知",
|
||
"default": true
|
||
},
|
||
{
|
||
"label": "地图识别任务提醒",
|
||
"type": "multi-checkbox",
|
||
"name": "mapMissionKeys",
|
||
"options": [
|
||
"伴月纪闻任务",
|
||
"探索派遣奖励",
|
||
"豪斗旅纪奖励",
|
||
"每日委托奖励"
|
||
],
|
||
"default": [
|
||
"伴月纪闻任务",
|
||
"探索派遣奖励",
|
||
"每日委托奖励"]
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"name": "relationship",
|
||
"type": "checkbox",
|
||
"label": "剩余时间,白名单 启用`和`关系(默认`或`关系)",
|
||
"default": false
|
||
},
|
||
{
|
||
"name": "whiteActivityNameList",
|
||
"type": "input-text",
|
||
"label": "白名单活动名称(使用|分割)<可不填 默认推送所有有剩余时间的活动>"
|
||
},
|
||
{
|
||
"name": "blackActivity",
|
||
"type": "input-text",
|
||
"label": "黑名单活动名称(使用|分割)<可不填,默认没有不推送的活动>(新增语法指定条件的黑名单:活动1-条件1,条件2|活动2-条件1)"
|
||
},
|
||
{
|
||
"name": "notifyHoursThreshold",
|
||
"type": "input-text",
|
||
"label": "通知剩余时间阈值<单位:小时>(默认 8760小时=365天)",
|
||
"default": "8760"
|
||
},
|
||
{
|
||
"name": "activityKey",
|
||
"type": "input-text",
|
||
"label": "打开活动页面按键(不填,默认:F5)",
|
||
"default": "F5"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"label": "周本提醒日",
|
||
"name": "campaignAreaReminderDays",
|
||
"type": "multi-checkbox",
|
||
"options": [
|
||
"周一",
|
||
"周二",
|
||
"周三",
|
||
"周四",
|
||
"周五",
|
||
"周六",
|
||
"周日"
|
||
],
|
||
"default": [
|
||
"周六",
|
||
"周日"]
|
||
|
||
},
|
||
{
|
||
"name": "campaignAreaKey",
|
||
"type": "input-text",
|
||
"label": "打开冒险之证按键(不填,默认:F1)",
|
||
"default": "F1"
|
||
},
|
||
{
|
||
"name": "openBagKey",
|
||
"type": "input-text",
|
||
"label": "打开背包按键(不填,默认:B)",
|
||
"default": "B"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"name": "checkHolyRelic",
|
||
"type": "checkbox",
|
||
"label": "启用圣遗物空间提醒",
|
||
"default": false
|
||
},
|
||
{
|
||
"name": "holyRelicsDiffCountThreshold",
|
||
"type": "input-text",
|
||
"label": "圣遗物剩余空间阈值",
|
||
"default": "400"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"name": "wsNoticeType",
|
||
"type": "select",
|
||
"label": "独立通知配置(设置):\n==============================\n",
|
||
"options": [
|
||
"自定义通知",
|
||
"bgi-tools通知"
|
||
],
|
||
"default": "自定义通知"
|
||
},
|
||
{
|
||
"name": "http_api_access_ws_proxy",
|
||
"type": "input-text",
|
||
"label": "bgi-tools获取授权wsproxy api地址",
|
||
"default": "http://127.0.0.1:8081/bgi/ws-proxy/access"
|
||
},
|
||
{
|
||
"name": "bgi_tools_token",
|
||
"type": "input-text",
|
||
"label": "bgi_tools授权token 语法:tokenName=tokenValue",
|
||
"default": "Authorization= "
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"type": "separator"
|
||
},
|
||
{
|
||
"name": "ws_proxy_url",
|
||
"type": "input-text",
|
||
"label": "WebSocketProxyUrl(列:http://127.0.0.1:8081/bgi/ws-proxy/message/send)",
|
||
"default": "http://127.0.0.1:8081/bgi/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": ""
|
||
}
|
||
] |