fix(task): 修复有时会卡在未读交流上

This commit is contained in:
XcantloadX 2025-03-27 14:50:21 +08:00
parent c8a06eb2fe
commit ea7ddcc5b5
2 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 B

View File

@ -31,13 +31,13 @@ def handle_unread_commu(img: MatLike | None = None) -> bool:
ret = False
logger.info('Check and skip commu')
img = use_screenshot(img)
skip_btn = image.find(R.Common.ButtonCommuFastforward, preprocessors=[WhiteFilter()])
skip_btn = image.find(R.Common.ButtonCommuSkip, preprocessors=[WhiteFilter()])
if skip_btn is None:
logger.info('No fast forward button found. Not at a commu.')
logger.info('No skip button found. Not at a commu.')
return ret
ret = True
logger.debug('Fast forward button found. Check commu')
logger.debug('Skip button found. Check commu')
it = Interval()
while True: