Commit ee677c56 authored by Jalin's avatar Jalin

增加验车防止用户重复状态失效

parent d5097d23
...@@ -84,6 +84,7 @@ class UserJob: ...@@ -84,6 +84,7 @@ class UserJob:
if self.is_first_time() or not self.check_user_is_login(): if self.is_first_time() or not self.check_user_is_login():
self.is_ready = False self.is_ready = False
if not self.handle_login(): return if not self.handle_login(): return
self.set_last_heartbeat()
self.is_ready = True self.is_ready = True
self.user_did_load() self.user_did_load()
...@@ -113,7 +114,7 @@ class UserJob: ...@@ -113,7 +114,7 @@ class UserJob:
def handle_login(self): def handle_login(self):
UserLog.print_start_login(user=self) UserLog.print_start_login(user=self)
self.login() return self.login()
def login(self): def login(self):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment