diff --git a/repo/js/ABGIHoui/README.md b/repo/js/ABGIHoui/README.md index 15fd97a9b..3f7d2f7b0 100644 --- a/repo/js/ABGIHoui/README.md +++ b/repo/js/ABGIHoui/README.md @@ -21,7 +21,7 @@ "启动bat脚本",[参数为:bat脚本路径,Ps:【E:\ABGI\重启.bat】] "联机更换ABGI的账号信息",[参数为:uid-name,Ps:【1*******-原神大王】] "更换联机房间",[参数为:房间名字+vip密钥,Ps:【古叉别断网-GUYOUSHIGEHAOREN】] - "等待时间" + "等待时间",[参数为:多少秒,Ps:【5000】] ------ diff --git a/repo/js/ABGIHoui/main.js b/repo/js/ABGIHoui/main.js index e6fd62578..bacb0dff3 100644 --- a/repo/js/ABGIHoui/main.js +++ b/repo/js/ABGIHoui/main.js @@ -1,5 +1,5 @@ // 延时时间 -const outTime= ~~settings.outTime; +const outTime= ~~String(settings.outTime).replace(/\D/g, ""); // 比较结果 let result = 0 @@ -125,8 +125,9 @@ async function compareVersion(version1, version2) { log.info(`ABGI启动更换房间:`+`${settings.inputText}`); await sleep(outTime); return; - case "等待时间(单位为ms)": - await sleep(500); + case "等待时间(单位为秒)": + const pureDigitStr = String(settings.inputText).replace(/\D/g, ""); + await sleep(pureDigitStr*1000); await sleep(outTime); return; default: diff --git a/repo/js/ABGIHoui/manifest.json b/repo/js/ABGIHoui/manifest.json index 22690ab8d..6d16a52c1 100644 --- a/repo/js/ABGIHoui/manifest.json +++ b/repo/js/ABGIHoui/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "老王妙妙屋", - "version": "0.8", + "version": "0.9", "tags": [ "abgi" ], diff --git a/repo/js/ABGIHoui/settings.json b/repo/js/ABGIHoui/settings.json index b0751a441..d58df29bb 100644 --- a/repo/js/ABGIHoui/settings.json +++ b/repo/js/ABGIHoui/settings.json @@ -21,7 +21,7 @@ "bat脚本", "联机更换ABGI的账号信息", "更换联机房间", - "等待时间(单位为ms)" + "等待时间(单位为秒)" ], "default": "" },