fix(AutoPlan): 解决地脉任务参数解析问题

- 移除地脉任务的临时禁用代码
- 修复参数传递中的类型转换问题,使用 parseInteger 处理计数参数
- 更新 BGI 版本号从 0.57.0 到 0.57.2
- 添加参数对象的构造注释代码作为备选实现方案
This commit is contained in:
yan
2026-02-28 11:55:06 +08:00
parent 188ae2279a
commit 8037fefce7
2 changed files with 11 additions and 6 deletions

View File

@@ -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;

View File

@@ -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": [
{