1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-19 09:59:28 +08:00

Fix: server key check for OTHERS_LOGIN_NOTIFY_SERVER

This commit is contained in:
LA-DI-DA
2023-12-19 20:04:00 +08:00
parent 74c123dd06
commit 1d2ce5db7f

View File

@@ -127,8 +127,9 @@ class Device(Screenshot, Control, AppControl, Platform):
if deep_get(self.config.data, "OthersLogin.OthersLogin.Enable"):
if OTHERS_LOGIN_CONFIRM.appear_on(self.image):
if OthersLoginNotifyOcr.ocr(self.image) == OTHERS_LOGIN_NOTIFY_SERVER[self.config.SERVER]:
raise OthersLogin
if self.config.SERVER in OTHERS_LOGIN_NOTIFY_SERVER.keys():
if OthersLoginNotifyOcr.ocr(self.image) == OTHERS_LOGIN_NOTIFY_SERVER[self.config.SERVER]:
raise OthersLogin
return self.image