From 8037fefce7275d37d8395cd45ce50d134969f004 Mon Sep 17 00:00:00 2001 From: yan Date: Sat, 28 Feb 2026 11:55:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(AutoPlan):=20=E8=A7=A3=E5=86=B3=E5=9C=B0?= =?UTF-8?q?=E8=84=89=E4=BB=BB=E5=8A=A1=E5=8F=82=E6=95=B0=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除地脉任务的临时禁用代码 - 修复参数传递中的类型转换问题,使用 parseInteger 处理计数参数 - 更新 BGI 版本号从 0.57.0 到 0.57.2 - 添加参数对象的构造注释代码作为备选实现方案 --- repo/js/AutoPlan/main.js | 15 ++++++++++----- repo/js/AutoPlan/manifest.json | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/repo/js/AutoPlan/main.js b/repo/js/AutoPlan/main.js index aace459ad..0d4dc7c7f 100644 --- a/repo/js/AutoPlan/main.js +++ b/repo/js/AutoPlan/main.js @@ -136,11 +136,16 @@ async function autoLeyLineOutcrop(autoLeyLineOutcrop) { log.info(`{0}`,"开始执行地脉任务") - if (true) { - log.warn("地脉 暂不支持") - return - } - let param = new AutoLeyLineOutcropParam(autoLeyLineOutcrop.count, autoLeyLineOutcrop.country, autoLeyLineOutcrop.leyLineOutcropType); + // if (true) { + // log.warn("地脉 暂不支持") + // return + // } + let param = new AutoLeyLineOutcropParam(parseInteger(autoLeyLineOutcrop.count+""), autoLeyLineOutcrop.country, autoLeyLineOutcrop.leyLineOutcropType); + // let param = new AutoLeyLineOutcropParam(); + // param.count = parseInteger(autoLeyLineOutcrop.count+""); + // param.country = autoLeyLineOutcrop.country; + // param.leyLineOutcropType = autoLeyLineOutcrop.leyLineOutcropType; + param.useAdventurerHandbook = autoLeyLineOutcrop.useAdventurerHandbook; param.friendshipTeam = autoLeyLineOutcrop.friendshipTeam; param.team = autoLeyLineOutcrop.team; diff --git a/repo/js/AutoPlan/manifest.json b/repo/js/AutoPlan/manifest.json index bab688741..16a5860ba 100644 --- a/repo/js/AutoPlan/manifest.json +++ b/repo/js/AutoPlan/manifest.json @@ -4,7 +4,7 @@ "description": "", "settings_ui": "settings.json", "main": "main.js", - "bgi_version": "0.57.0", + "bgi_version": "0.57.2", "key": "oiJbmjU2R0NniiwiZxh", "authors": [ {