From f0607ffe95d37345027a78718f3d76b1cb63281a Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sun, 15 Sep 2024 02:48:51 +0800 Subject: [PATCH] Fix: Click account confirm at login just donno why there is a button to confirm login this account even if there is only one account --- assets/cn/login/ACCOUNT_CONFIRM.png | Bin 0 -> 12323 bytes tasks/login/assets/assets_login.py | 11 +++++++++++ tasks/login/login.py | 4 +++- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 assets/cn/login/ACCOUNT_CONFIRM.png diff --git a/assets/cn/login/ACCOUNT_CONFIRM.png b/assets/cn/login/ACCOUNT_CONFIRM.png new file mode 100644 index 0000000000000000000000000000000000000000..3f08352e7169ca51538b52d8ed0d63a29f81812f GIT binary patch literal 12323 zcmeHt_gm6y{66Jr52G}57oN(IS-HYlCsEUiL~)PG}n3&~AMJ?R8a!=IC zl>>5bag(BwqT+-veLmlxzyHAZyn*ZCx_Dm~&vQSo=f3aP4R0PkFgS5k>?i;LIC0ld z4+a1n;J@Af^YDKDa7)@~AAdOV)X)kE0318>=d}-zNIVAs9KG*$=gz~2uHJs$NLTNt z=kMORbN;EXx3imv695o2oNO9s`GIp*ht6>lH2-JtcTv2@GXO{??{MoWE7Ga=fX6RS zoxaud3U}08NEk>ogf~9#J8GDWoBAYM>2e#7vyOn<-dvU*%__s9SxZYh13R@0B4d|| zq6vlpPhX0jBe?^>uvc0dgVIq@!^R(!u>Hb@6MvmQHP`;lC6yoDY2VeqPq$3+UQ|E4WC1uI4VVC(W*po14hCqwYSt?gJ#q8vMQgRt?}0{2A=Z{)TUWPkFaMSO01# z*cWD1e#2mY807#UfMEGf@YW+hSi(P7IsoTy?g!kFI@2j|{+__6Yu)t|ISx->RT}OC zG_=Qd#v6Al3suJc6boGaJu!7*>YGQ=KaWM^PB|Z$0TJVqWX>2e1nyCf0{~)MU0=C3 zb>A`OW+vyH86K>)CK4C%+Z&{FVTI1EeY^iJz^Ml`*096uY`?(Mm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 HcmV?d00001 diff --git a/tasks/login/assets/assets_login.py b/tasks/login/assets/assets_login.py index e7f36c8f0..a91813695 100644 --- a/tasks/login/assets/assets_login.py +++ b/tasks/login/assets/assets_login.py @@ -3,6 +3,17 @@ from module.base.button import Button, ButtonWrapper # This file was auto-generated, do not modify it manually. To generate: # ``` python -m dev_tools.button_extract ``` +ACCOUNT_CONFIRM = ButtonWrapper( + name='ACCOUNT_CONFIRM', + cn=Button( + file='./assets/cn/login/ACCOUNT_CONFIRM.png', + area=(583, 424, 696, 450), + search=(563, 404, 716, 470), + color=(172, 145, 92), + button=(583, 424, 696, 450), + ), + en=None, +) LOGIN_CONFIRM = ButtonWrapper( name='LOGIN_CONFIRM', share=[ diff --git a/tasks/login/login.py b/tasks/login/login.py index 412220ac0..fd1889ed9 100644 --- a/tasks/login/login.py +++ b/tasks/login/login.py @@ -3,7 +3,7 @@ from module.exception import GameNotRunningError from module.logger import logger from tasks.base.page import page_main from tasks.base.ui import UI -from tasks.login.assets.assets_login import LOGIN_CONFIRM, LOGIN_LOADING, USER_AGREEMENT_ACCEPT +from tasks.login.assets.assets_login import * from tasks.login.cloud import LoginAndroidCloud @@ -62,6 +62,8 @@ class Login(UI, LoginAndroidCloud): continue if self.appear_then_click(USER_AGREEMENT_ACCEPT): continue + if self.appear_then_click(ACCOUNT_CONFIRM): + continue # Additional if self.handle_popup_single(): continue