From b4a674efe591bf899e1a2bf2cbf34fc6b407617a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=93=E4=B8=B6=E6=A2=A6=E4=B8=B6=E4=BB=81?= <74444214+Daydreamer114@users.noreply.github.com> Date: Sun, 1 Dec 2024 09:44:00 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B4=A6=E5=8F=B7=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=80=80=E5=87=BA=E8=B4=A6=E5=8F=B7=E5=A2=9E=E5=8A=A0OCR=20(#1?= =?UTF-8?q?1258)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: 尝试增强账号切换功能稳定性 * fix: 将带文字的模板匹配的闭运算设为false * Revert "fix: 将带文字的模板匹配的闭运算设为false" This reverts commit afe42d167994fda56e977f20e04cd0fd942abc0b. --- resource/tasks.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resource/tasks.json b/resource/tasks.json index da079a2ec4..16e0c28984 100644 --- a/resource/tasks.json +++ b/resource/tasks.json @@ -2180,7 +2180,7 @@ "Logout": { "action": "ClickSelf", "roi": [660, 460, 140, 50], - "next": ["LogoutConfirm"] + "next": ["LogoutConfirm", "LogoutConfirmOCR", "Logout"] }, "LogoutOCR": { "baseTask": "Logout", @@ -2194,6 +2194,14 @@ "next": ["AccountManager", "AccountManager@LoadingText"], "postDelay": 3000 }, + "LogoutConfirmOCR": { + "algorithm": "OcrDetect", + "action": "ClickSelf", + "text": ["是"], + "roi": [650, 450, 280, 60], + "next": ["AccountManager", "AccountManager@LoadingText"], + "postDelay": 3000 + }, "ExitOld": { "action": "ClickSelf", "roi": [770, 350, 190, 60],