bugfix
This commit is contained in:
parent
fdabfc2261
commit
a460c0b888
@ -38,7 +38,8 @@ ns = {
|
|||||||
"user_status": "0"
|
"user_status": "0"
|
||||||
}
|
}
|
||||||
udata = DictObject(**ns)
|
udata = DictObject(**ns)
|
||||||
async with get_sor_context(request._run_ns, 'rbac') as sor:
|
try:
|
||||||
|
async with get_sor_context(request._run_ns, 'rbac') as sor:
|
||||||
recs = await sor.R('users', {'mobile': params_kw.cellphone})
|
recs = await sor.R('users', {'mobile': params_kw.cellphone})
|
||||||
if recs:
|
if recs:
|
||||||
if len(recs) == 1:
|
if len(recs) == 1:
|
||||||
@ -100,3 +101,11 @@ async with get_sor_context(request._run_ns, 'rbac') as sor:
|
|||||||
"user": r
|
"user": r
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
except Exception as e:
|
||||||
|
exception(f'Error happend{e}')
|
||||||
|
return {
|
||||||
|
"status": "error",
|
||||||
|
"data":{
|
||||||
|
"message": f"{e}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user