From 90e9e943b25941d199ceb40af70b749e6c0a7d16 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 26 Apr 2026 15:14:33 +0800 Subject: [PATCH] bugfix --- wwwroot/phone_login.dspy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/phone_login.dspy b/wwwroot/phone_login.dspy index ccec376..89d7da8 100644 --- a/wwwroot/phone_login.dspy +++ b/wwwroot/phone_login.dspy @@ -44,7 +44,7 @@ async with get_sor_context(request._run_ns, 'rbac') as sor: if len(recs) == 1: r = recs[0] # Update last_login atomically (standard SQL, no DB-specific functions) - now_str = curDateString() + now_str = timestampstr() await sor.sqlExe(""" UPDATE users SET last_login = ${now}$, login_fail_count = 0, @@ -61,7 +61,7 @@ async with get_sor_context(request._run_ns, 'rbac') as sor: if params_kw.selected_id: for r in recs: if r.id == params_kw.selected_id: - now_str = curDateString() + now_str = timestampstr() await sor.sqlExe(""" UPDATE users SET last_login = ${now}$, login_fail_count = 0,