From 54b44724b8bb21cf757b54aaf3b277f1d2776000 Mon Sep 17 00:00:00 2001 From: Gedley <72902731+Gedley@users.noreply.github.com> Date: Mon, 18 May 2026 22:07:00 +0800 Subject: [PATCH] =?UTF-8?q?JS=EF=BC=9A=E6=88=98=E6=96=97=E5=A5=BD=E6=84=9F?= =?UTF-8?q?=EF=BC=8C=E8=A1=A5=E5=85=85=E6=8A=A5=E9=94=99=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=20(#3222)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/AutoFriendshipFight/main.js | 2 +- repo/js/AutoFriendshipFight/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/repo/js/AutoFriendshipFight/main.js b/repo/js/AutoFriendshipFight/main.js index f9e1c83b4..8fd3dbc21 100644 --- a/repo/js/AutoFriendshipFight/main.js +++ b/repo/js/AutoFriendshipFight/main.js @@ -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}`); diff --git a/repo/js/AutoFriendshipFight/manifest.json b/repo/js/AutoFriendshipFight/manifest.json index e051ad70b..5bb551b22 100644 --- a/repo/js/AutoFriendshipFight/manifest.json +++ b/repo/js/AutoFriendshipFight/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "战斗好感:自动好感度", - "version": "2.0.0", + "version": "2.0.1", "bgi_version": "0.45.1", "tags": [ "好感",