From 85d09720f17521b19b30d6ba800a056c3d6b766a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 16 Dec 2025 10:50:02 +0800 Subject: [PATCH] bugfix --- wwwroot/manual_recharge.dspy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wwwroot/manual_recharge.dspy b/wwwroot/manual_recharge.dspy index e709ef2..0126ccd 100644 --- a/wwwroot/manual_recharge.dspy +++ b/wwwroot/manual_recharge.dspy @@ -12,18 +12,18 @@ if params_kw.customerid == userorgid: db = DBPools() dbname = get_module_dbname('unipay') async with db.sqlorContext(dbname) as sor: + pl = PaymentLog(request._run_ns) + biz_date = await get_business_date(sor) recs = await sor.R('organization', {'id': params_kw.customerid}) if len(recs) < 0: return UiError(title="手工充值", message=f"客户机构不存在{params_kw.customerid}") -pl = PaymentLog(request._run_ns) -plog = await pl.new_log(userid, params_kw.customerid, 'agent', + plog = await pl.sor_new_log(sor, userid, params_kw.customerid, 'agent', '手工充值', params_kw.amount, 0.0, request['client_ip'], currency='CNY') -async with db.sqlorContext(dbname) as sor: - biz_date = await get_business_date(sor) + await recharge_accounting(sor, params_kw.customerid, 'RECHARGE', plog['id'], biz_date,