feat(auth): 注册提交头像链接非必须

This commit is contained in:
xingc
2025-04-24 17:22:14 +08:00
parent ad83a47e6b
commit af5f4d61b8

View File

@@ -78,8 +78,7 @@ async def wechat_login(
if user is None: if user is None:
checked = all([ checked = all([
payload.phone, payload.phone,
payload.nickname, payload.nickname
payload.avatar_url,
]) ])
if checked is False and wechat_session_str is None: if checked is False and wechat_session_str is None:
await redis_conn.set(keyname, ujson.encode(wechat_session), ex=60 * 5) await redis_conn.set(keyname, ujson.encode(wechat_session), ex=60 * 5)