Commit cd40d4c2 authored by ZZH's avatar ZZH

add qkadmin auth 2024-03-18

parent 54704328
......@@ -95,9 +95,9 @@ def is_need_verify(path):
log.info(f"{path} not need verify")
return False
if re.search("/qkadmin", path):
log.info(f"{path} not need verify")
return False
# if re.search("/qkadmin", path):
# log.info(f"{path} not need verify")
# return False
# if re.match("^/unify-api/users/logout/user-logout/?$", path):
# log.info("logout not need verify")
......
......@@ -66,6 +66,7 @@ async def get_user_info(request) -> UserInfoResponse:
zhiweiu_auth = user_info.get("zhiweiu_auth")
if not zhiweiu_auth and zhiweiu_auth != 0:
zhiweiu_auth = 1
log.info(f"user info:{user_id}, {user_info}")
return UserInfoResponse(
user_id=user_id,
# nick_name=user_info.get("nickname") or user_info.get("real_name"),
......@@ -429,4 +430,4 @@ async def post_delete_user(request, body: UserinfoReq):
new_wechat_id = f"delete{code}" + data["wechat_id"] \
if data["wechat_id"] else None
await update_user_is_delete(user_id, new_wechat_id)
return success_res(msg="注销成功")
return success_res(msg="注销成功")
\ No newline at end of file
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