Explorar el Código

fix(WantedQuests): 改'封'字检测为包含匹配

lhye hace 6 meses
padre
commit
0fbbdc1174
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      tasks/WantedQuests/script_task.py

+ 3 - 2
tasks/WantedQuests/script_task.py

@@ -749,8 +749,9 @@ class ScriptTask(WQExplore, SecretScriptTask, WantedQuestsAssets):
         return -1, -1, -1, [0, 0, 0, 0]
         return -1, -1, -1, [0, 0, 0, 0]
 
 
     def is_wq_remained(self):
     def is_wq_remained(self):
-        # 检测是否还存在任务,OCR识别"封"字
-        return self.ocr_appear(self.O_WQ_LIST_TOP_BOTTOM_CHECK)
+        # 检测是否还存在任务,OCR识别是否包含"封"字
+        result = self.O_WQ_LIST_TOP_BOTTOM_CHECK.ocr(self.device.image)
+        return "封" in result