This commit is contained in:
yumoqing 2026-04-26 20:24:53 +08:00
parent fdabfc2261
commit a460c0b888

View File

@ -38,6 +38,7 @@ ns = {
"user_status": "0" "user_status": "0"
} }
udata = DictObject(**ns) udata = DictObject(**ns)
try:
async with get_sor_context(request._run_ns, 'rbac') as sor: 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:
@ -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}"
}
}