ChengRanORZ %!s(int64=2) %!d(string=hai) anos
pai
achega
38e387bb68
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      tasks/Component/SwitchAccount/switch_account.py

+ 10 - 0
tasks/Component/SwitchAccount/switch_account.py

@@ -1,3 +1,5 @@
+from adbutils import device
+
 from module.config.config import Config
 from module.config.config import Config
 from module.device.device import Device
 from module.device.device import Device
 from tasks.Component.SwitchAccount.assets import SwitchAccountAssets
 from tasks.Component.SwitchAccount.assets import SwitchAccountAssets
@@ -51,3 +53,11 @@ class SwitchAccount(LoginAccount, ExitGame, GameUi, SwitchAccountAssets):
         login_handler.app_handle_login()
         login_handler.app_handle_login()
 
 
         return True
         return True
+
+
+if __name__ == '__main__':
+    config = Config('oas1')
+    device=Device()
+    toAccount=AccountInfo(account="email0@163.com",accountAlias="emailO#emailo",appleOrAndroid=True,character="粘贴",svr="立秋夕烛")
+    sa=SwitchAccount(config,device,toAccount)
+    sa.switchAccount()