|
...
|
...
|
@@ -46,15 +46,14 @@ class Monitor(callback.CallBack): |
|
|
|
Config.set('host', self._socket.ws_url)
|
|
|
|
|
|
|
|
def go_login(self):
|
|
|
|
threading.Thread(target=self._auto_login,args=()).start()
|
|
|
|
threading.Thread(target=self._auto_login, args=(), name='auto_login_thread').start()
|
|
|
|
|
|
|
|
def _auto_login(self):
|
|
|
|
user_list = UserList.query(status=Status.ONLINE)
|
|
|
|
for user in user_list:
|
|
|
|
print("自动登录->", user)
|
|
|
|
self.login(user.email, user.password, user.format_cookie(), user.user_agent)
|
|
|
|
time.sleep(0.2)
|
|
|
|
|
|
|
|
time.sleep(0.3)
|
|
|
|
|
|
|
|
def _replace_call(self, client):
|
|
|
|
funcs = [x for x in dir(self) if x.startswith("on")]
|
...
|
...
|
|