Commit b5c5f65e authored by ibuler's avatar ibuler

[Bugfix] 修复on token时的不正确问题

parent a0bd6e98
...@@ -154,7 +154,10 @@ class ProxyNamespace(BaseNamespace): ...@@ -154,7 +154,10 @@ class ProxyNamespace(BaseNamespace):
if not valid: if not valid:
return return
user_id = info.get('user', None) user_id = info.get('user', None)
request.current_user = app_service.get_user_profile(user_id)
request.current_user = current_user = app_service.get_user_profile(user_id)
connection = Connection.get_connection(request.sid)
connection.user = current_user
message = { message = {
'secret': secret, 'secret': secret,
'uuid': info['asset'], 'uuid': info['asset'],
......
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