From 2033f8fb9878a169250a42c7255ee4e838d924aa Mon Sep 17 00:00:00 2001 From: W1NDes Date: Wed, 25 Jun 2025 01:25:49 +0800 Subject: [PATCH] =?UTF-8?q?Fix(CampaignRun):=20=E4=BF=AE=E5=A4=8DOCR?= =?UTF-8?q?=E5=9B=BE=E5=83=8F=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/campaign/run.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/campaign/run.py b/module/campaign/run.py index 168a612ed..aad1b2e5d 100644 --- a/module/campaign/run.py +++ b/module/campaign/run.py @@ -389,9 +389,9 @@ class CampaignRun(CampaignEvent, ShopStatus): EMOTION_TIP_L5=Button(area=(352, 325, 929, 360), color=(), button=(352, 325, 929, 360)) EMOTION_TIP_L6=Button(area=(352, 360, 929, 395), color=(), button=(352, 360, 929, 395)) - result2 = Ocr(EMOTION_TIP_L4, lang= 'cnocr').ocr(image) - result2 += Ocr(EMOTION_TIP_L5, lang= 'cnocr').ocr(image) - result2 += Ocr(EMOTION_TIP_L6, lang= 'cnocr').ocr(image) + result2 = Ocr(EMOTION_TIP_L4, lang= 'cnocr').ocr(self.device.image) + result2 += Ocr(EMOTION_TIP_L5, lang= 'cnocr').ocr(self.device.image) + result2 += Ocr(EMOTION_TIP_L6, lang= 'cnocr').ocr(self.device.image) if "低心情" in result2 or "降低好感" in result2: logger.warning("舰队心情低") self.solve_emotion_error(name)