update
This commit is contained in:
parent
25c79e5de4
commit
91a6c880b4
@ -103,7 +103,7 @@ async def wechat_login(
|
|||||||
user = existing_user
|
user = existing_user
|
||||||
logger.info(f"现有用户登录: id={user.id}")
|
logger.info(f"现有用户登录: id={user.id}")
|
||||||
|
|
||||||
if user.user_code is None:
|
if not user.user_code:
|
||||||
user.user_code = generate_user_code()
|
user.user_code = generate_user_code()
|
||||||
user.nickname = f"搭友{user.user_code}"
|
user.nickname = f"搭友{user.user_code}"
|
||||||
user.avatar = settings.DEFAULT_AVATAR
|
user.avatar = settings.DEFAULT_AVATAR
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user