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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user