mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 15:36:59 +08:00
Fix: 修复开荒
- 修复低级图出BOSS后报错的问题 - 修复了开荒进度0%时的章节名OCR - 修复打完BOSS有时会卡住的问题
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import time
|
||||
from collections import deque
|
||||
|
||||
from retrying import retry
|
||||
|
||||
from module.base.timer import Timer
|
||||
from module.base.utils import *
|
||||
from module.device.connection import Connection
|
||||
from module.logger import logger
|
||||
from module.exception import ScriptError
|
||||
from module.logger import logger
|
||||
|
||||
|
||||
class Control(Connection):
|
||||
@@ -62,11 +64,11 @@ class Control(Connection):
|
||||
self._click_uiautomator2(x, y)
|
||||
self.sleep(self.config.SLEEP_AFTER_CLICK)
|
||||
|
||||
# @retry()
|
||||
@retry()
|
||||
def _click_uiautomator2(self, x, y):
|
||||
self.device.click(int(x), int(y))
|
||||
|
||||
# @retry()
|
||||
@retry()
|
||||
def _click_adb(self, x, y):
|
||||
self.adb_shell(['input', 'tap', str(x), str(y)], serial=self.serial)
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ class Screenshot(Connection):
|
||||
screenshot = self.adb_shell(['screencap', '-p'], serial=self.serial)
|
||||
return self._process_screenshot(screenshot)
|
||||
|
||||
# @retry()
|
||||
@retry()
|
||||
# @timer
|
||||
def screenshot(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user