feat(AutoPlan): 实现自动运行列表的循环执行机制

- 添加while循环结构支持重复执行autoRunList
- 集成体力检测逻辑防止体力耗尽时继续运行
- 添加循环控制条件避免无限执行
- 实现体力不足时的自动中断机制
- 优化运行流程确保按需执行和停止
This commit is contained in:
yan
2026-02-19 23:00:48 +08:00
parent 87648f873c
commit 1361c144a9

View File

@@ -464,7 +464,18 @@ async function main() {
|| (item.runType === config.user.runTypes[1] && item?.autoLeyLineOutcrop.count > 0)
)
if (list?.length > 0) {
await autoRunList(list);
//循环跑
while (true){
await autoRunList(list);
if (true){
//不循环跑
break
}else
if (config.user.physical.current<config.user.physical.min){
//体力耗尽
break
}
}
} else {
log.info(`本日无计划`)
}