From e7bd981901a59cfb5577af0661a455b7683aeb7d Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Tue, 10 Oct 2023 17:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=99=E5=86=85=E6=9C=89=E7=A9=BA=E4=BD=8D?= =?UTF-8?q?=E6=97=B6read=5Fscreen=E8=BF=94=E5=9B=9E=E7=A9=BA=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/solvers/base_schedule.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arknights_mower/solvers/base_schedule.py b/arknights_mower/solvers/base_schedule.py index 44b853901..a320b327e 100644 --- a/arknights_mower/solvers/base_schedule.py +++ b/arknights_mower/solvers/base_schedule.py @@ -921,6 +921,10 @@ def read_screen(self, img, type="mood", limit=24, cord=None): if not ret: raise Exception("识别失败") ret = ret[0][0] + if not ret: + if 'name' in type: + return '' + raise Exception("读取失败") if "赤金完成" in ret: raise Exception("读取到赤金收取提示") if 'mood' in type: