Commit fe190450 authored by wanliofficial's avatar wanliofficial

update

parent baa16069
{"lastModifyDateTime": 1624973031}
\ No newline at end of file
{"lastModifyDateTime": 1625808079}
\ No newline at end of file
......@@ -36,7 +36,7 @@ class UserManager(object):
if isExists:
return False, "user already exists"
editor = User.get(uuid=uuid)
editor = User.get(id=uuid)
if not editor:
return False, "current user is not exists"
......
This diff is collapsed.
......@@ -134,6 +134,7 @@ class BaseWebsocket(WebSocketHandler):
def broadcastMessage(cls, message):
# pprint.pprint(cls.handlers)
# pprint.pprint(message)
print("=======>", cls._clients)
if not message.get("imei"):
return False
......@@ -202,7 +203,6 @@ class NotifyHandler(BaseWebsocket):
if c.get("uuid") == payload.get("data").get("uuid"):
c["ts"] = int(time.time())
self.write_message(json.dumps({ 'code': 200, 'data': None, 'msg': 'update session timestamp success' }))
break
else:
self.write_message(json.dumps({ 'code': 200, 'data': None, 'msg': 'unkonw message packet, disconnect by server' }))
self.handlers[className].remove(self)
......@@ -336,4 +336,4 @@ if __name__ == "__main__":
signal.signal(signal.SIGINT, raise_graceful_exit)
signal.signal(signal.SIGTERM, raise_graceful_exit)
tornado.ioloop.IOLoop.current().start()
\ No newline at end of file
tornado.ioloop.IOLoop.current().start()
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