diff --git a/repo/js/ABGIHoui/README.md b/repo/js/ABGIHoui/README.md index de22cb993..6cfb49ed0 100644 --- a/repo/js/ABGIHoui/README.md +++ b/repo/js/ABGIHoui/README.md @@ -3,7 +3,7 @@ #### 该脚本是搭配auto-bgi软件使用的 #### 不了解的可以去BetterGI的QQ频道搜索【auto-bgi】 #### 也可以电脑点击【[ABGI](https://gitee.com/wangjian0327/auto-bgi/blob/ginVue/README.md)】,进行学习,了解,以及加入QQ群215053644 -##### 可启动的功能有 +##### 可启动的功能有(调用不起作用,请更新abgi,如果没起作用,艾特我) "一条龙", [参数为:一条龙名字,Ps:【默认配置】] "配置组", [参数为:配置组名字,Ps:【锄地】] "一条龙(关闭原神)", [参数为:一条龙名字,Ps:【默认配置】] @@ -20,9 +20,9 @@ "米游社签到", [需要自己配置相关文件] "启动bat脚本",[参数为:bat脚本路径,Ps:【E:\ABGI\重启.bat】] "联机更换ABGI的账号信息",[参数为:uid-name,Ps:【1*******-原神大王】] - + "更换联机房间",[参数为:房间名字+任意密钥,Ps:【古叉别断网-GUYOUSHIGEHAOREN】] "等待时间",[参数为:多少秒,Ps:【5000】] - + "红血检测",[参数为:启动/关闭,Ps:【启动】] ------ #### 原理解释 diff --git a/repo/js/ABGIHoui/main.js b/repo/js/ABGIHoui/main.js index 9073ebf7b..0f2e2662e 100644 --- a/repo/js/ABGIHoui/main.js +++ b/repo/js/ABGIHoui/main.js @@ -99,12 +99,12 @@ async function compareVersion(version1, version2) { await sleep(outTime); return; case "联机更换ABGI的账号信息": - result = await compareVersion(settings.versionABGI, "3.4.12"); - if (result == -1) { - log.error("无法调用该任务,请更新ABGI至3.4.12版本或更高版本"); - await sleep(outTime); - return; - }; + // result = await compareVersion(settings.versionABGI, "3.4.12"); + // if (result == -1) { + // log.error("无法调用该任务,请更新ABGI至3.4.12版本或更高版本"); + // await sleep(outTime); + // return; + // }; await sleep(500); log.info("ABGI启动联机换号:"+`${settings.inputText}`); await sleep(outTime); @@ -114,22 +114,27 @@ async function compareVersion(version1, version2) { // log.info(`ABGI启动${settings.selectTask}`+":"); // await sleep(outTime); // return; - // case "更换联机房间": - // result = await compareVersion(settings.versionABGI, "3.5.25"); - // if (result == -1) { - // log.error("无法调用该任务,请更新ABGI至3.5.25版本或更高版本"); - // await sleep(outTime); - // return; - // }; - // await sleep(500); - // log.info(`ABGI启动更换房间:`+`${settings.inputText}`); - // await sleep(outTime); - // return; + case "更换联机房间": + // result = await compareVersion(settings.versionABGI, "3.5.25"); + // if (result == -1) { + // log.error("无法调用该任务,请更新ABGI至3.5.25版本或更高版本"); + // await sleep(outTime); + // return; + // }; + await sleep(500); + log.info(`ABGI启动更换房间:`+`${settings.inputText}`); + await sleep(outTime); + return; case "等待时间(单位为秒)": const pureDigitStr = String(settings.inputText).replace(/\D/g, ""); await sleep(pureDigitStr*1000); await sleep(outTime); return; + case "红血检测": + await sleep(500); + log.info(`ABGI启动关闭红血检测:`+`${settings.inputText}`); + await sleep(outTime); + return; default: log.error(`ABGI不支持的任务${settings.selectTask}`); await sleep(outTime); diff --git a/repo/js/ABGIHoui/manifest.json b/repo/js/ABGIHoui/manifest.json index dcebb8be3..710666262 100644 --- a/repo/js/ABGIHoui/manifest.json +++ b/repo/js/ABGIHoui/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "老王妙妙屋", - "version": "0.9.1", + "version": "1.0", "tags": [ "abgi" ], diff --git a/repo/js/ABGIHoui/settings.json b/repo/js/ABGIHoui/settings.json index 210bc3230..33cb49546 100644 --- a/repo/js/ABGIHoui/settings.json +++ b/repo/js/ABGIHoui/settings.json @@ -20,8 +20,9 @@ "米游社签到", "bat脚本", "联机更换ABGI的账号信息", - // "更换联机房间", - "等待时间(单位为秒)" + "更换联机房间", + "等待时间(单位为秒)", + "红血检测" ], "default": "" }, @@ -36,11 +37,12 @@ "type": "input-text", "label": " 结束延时(可改) \n 默认一秒,可以设置延时时间,单位毫秒", "default": "1000" - }, - { - "name": "versionABGI", - "type": "input-text", - "label": " 本地ABGI版本(别改) \n 本地ABGI自动修改版本号,不用改", - "default": "3.4.12" } + // , + // { + // "name": "versionABGI", + // "type": "input-text", + // "label": " 本地ABGI版本(别改) \n 本地ABGI自动修改版本号,不用改", + // "default": "3.6.53" + // } ] \ No newline at end of file