Commit b6139fbb authored by xianyang's avatar xianyang

优化uuid查询

parent c2b4b718
...@@ -172,7 +172,7 @@ def accout_list_data(**params): ...@@ -172,7 +172,7 @@ def accout_list_data(**params):
def query_uuid_or_user_number(param): def query_uuid_or_user_number(param):
"""查询uuid和user_number""" """查询uuid和user_number"""
if param.uuid: if param.uuid:
user_sql = f"select nick_name,uuid from v2_user where uuid='{param.uuid}' limit 0,1" user_sql = f"select user_id,nick_name,uuid from v2_user where uuid='{param.uuid}' limit 0,1"
user = LinkMysql(env.DB_3YV2).query_mysql(user_sql) user = LinkMysql(env.DB_3YV2).query_mysql(user_sql)
if not user: if not user:
guild_sql = f"select id,guild_name,uuid from guild where uuid='{param.uuid}' limit 0,1" guild_sql = f"select id,guild_name,uuid from guild where uuid='{param.uuid}' limit 0,1"
......
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