update loginUser

This commit is contained in:
ping 2026-04-27 11:00:17 +08:00
parent 19ba9aac26
commit c4e45597a4

View File

@ -153,6 +153,10 @@ async def loginUser(ns):
if type1 == 1:
# 手机号验证码登录
userreacs = await sor.R('users', {'mobile': ns.get('username')})
if not userreacs:
userreacs = await sor.R('users', {'username': ns.get('username')})
# 如果是微信扫码后绑定已有账号
if ns.get('wechat_openid'):
if userreacs: