Commit bfe3534a authored by xianyang's avatar xianyang

优化main

parent 1f8fe5d0
......@@ -160,7 +160,7 @@ class RechargeStatement(object):
x['paychannel'] = pay_dict.get(y['paychannel'], y['paychannel'])
x['sid'] = y['sid']
else:
x['nick_name'] = nick_dict[x['uuid']]
x['nick_name'] = nick_dict.get(x['uuid']) if nick_dict.get(x['uuid']) else ""
x['status'] = 1
Logger().logger.info(f"拼接的数据:{query_data[0]}")
return query_data
......
......@@ -31,7 +31,7 @@ async def add_process_time_header(request: Request, call_next):
try:
response = await call_next(request)
except:
response = add_process_time_header(request, call_next)
return ""
process_time = time.time() - start_time
response.headers["X-Process-Time"] = str(process_time)
url_list = ['/api/users/imgCode', '/api/users/login', '/api/users/goodleCode', '/api/users/googleLogin']
......
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