账号标识

This commit is contained in:
wuaho 2021-04-26 17:29:00 +08:00
parent 42f1d7181e
commit 808e8842f7

View File

@ -104,7 +104,7 @@ async def role_idx(request, rdb, data):
if data.get('#type') == 'track' and data.get('#event_name') == 'create_role':
# key = $appid.$binduid v : uid
account = data.get("properties", {}).get("account")
account = data.get("properties", {}).get("binduid")
account_id = data.get("#account_id")
if account and account_id:
key = f'{data["#app_id"]}_{account}_roles'