JS:战斗好感,补充报错拦截 (#3222)

This commit is contained in:
Gedley
2026-05-18 22:07:00 +08:00
committed by GitHub
parent f769e0bd45
commit 54b44724b8
2 changed files with 2 additions and 2 deletions

View File

@@ -431,7 +431,7 @@ async function executeBattleTasks() {
} catch (error) {
const msg = error && error.message ? String(error.message) : "";
// 特别处理:如果是"取消自动任务"错误,视为成功
if (msg.includes("取消自动任务")) {
if (msg.includes("取消自动任务") || msg.includes("A task was canceled")) {
return { status: "success" };
}
log.error(`战斗执行过程中出错: ${msg}`);

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "战斗好感:自动好感度",
"version": "2.0.0",
"version": "2.0.1",
"bgi_version": "0.45.1",
"tags": [
"好感",