Commit a0bd6e98 authored by ibuler's avatar ibuler

[Bugfix] 修复单页面问题

parent 6ab3ea0c
...@@ -123,7 +123,7 @@ class ProxyNamespace(BaseNamespace): ...@@ -123,7 +123,7 @@ class ProxyNamespace(BaseNamespace):
client.chan.write(message.get("data", "")) client.chan.write(message.get("data", ""))
def check_token(self, token, secret, client_id): def check_token(self, token, secret, client_id):
if not token or secret: if not token and not secret:
msg = "Token or secret is None: {} {}".format(token, secret) msg = "Token or secret is None: {} {}".format(token, secret)
logger.error(msg) logger.error(msg)
self.emit('data', {'data': msg, 'room': client_id}, room=client_id) self.emit('data', {'data': msg, 'room': client_id}, room=client_id)
......
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