From 4e2ddff63c802557ded4be185a20d3338ebde949 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 15 Dec 2025 13:58:36 +0800 Subject: [PATCH] bugfix --- wwwroot/manual_recharge.dspy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wwwroot/manual_recharge.dspy b/wwwroot/manual_recharge.dspy index 5d2467d..1233f22 100644 --- a/wwwroot/manual_recharge.dspy +++ b/wwwroot/manual_recharge.dspy @@ -10,7 +10,8 @@ dbname = get_module_dbname('unipay') async with db.sqlorContext(dbname) as sor: recs = await sor.R('organization', {'id': params_kw.customerid}) if len(recs) < 0: - return UiError(title="手工充值", f"客户机构不存在{params_kw.customerid}") + return UiError(title="手工充值", + message=f"客户机构不存在{params_kw.customerid}") pl = PaymentLog(request._run_ns) plid = await pl.new_log(serid, params_kw.customerid, 'manual', @@ -27,4 +28,5 @@ async with db.sqlorContext(dbname) as sor: pl.payed_log(plid) return UiMessage(title="手工充值",message=f"充值{params_kw.amount} 成功") exception(f'Exception:{db.e_except}') -return UiError(title="手工充值", f"充值失败") +return UiError(title="手工充值", + message=f"充值失败")