From 819618a601c9048edc4036e48a7cce61b619d090 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 21 Mar 2026 18:15:56 +0800 Subject: [PATCH] bugfix --- wwwroot/phone_login.dspy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wwwroot/phone_login.dspy b/wwwroot/phone_login.dspy index d3cd10b..bb44137 100644 --- a/wwwroot/phone_login.dspy +++ b/wwwroot/phone_login.dspy @@ -37,6 +37,7 @@ ns = { "mobile": params_kw.cellphone, "user_status": "0" } +udata = DictObject(**ns) async with get_sor_context(request._run_ns, 'rbac') as sor: recs = await sor.R('users', {'mobile': params_kw.cellphone}) if recs: @@ -67,7 +68,7 @@ async with get_sor_context(request._run_ns, 'rbac') as sor: } } - d = await register_user(sor, ns) + d = await register_user(sor, udata) if d['status'] == 'error': return d