update loginUser
This commit is contained in:
parent
19ba9aac26
commit
c4e45597a4
@ -153,6 +153,10 @@ async def loginUser(ns):
|
|||||||
if type1 == 1:
|
if type1 == 1:
|
||||||
# 手机号验证码登录
|
# 手机号验证码登录
|
||||||
userreacs = await sor.R('users', {'mobile': ns.get('username')})
|
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 ns.get('wechat_openid'):
|
||||||
if userreacs:
|
if userreacs:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user