From 13d6d33203f294303f2ee2703ebdf32ad05b75da Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 30 Mar 2026 11:38:05 +0800 Subject: [PATCH] bugfix --- llmage/accounting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llmage/accounting.py b/llmage/accounting.py index 410dc75..ccf580f 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -51,6 +51,7 @@ async def checkCustomerBalance(llmid, userorgid): async def llm_accounting(request, llmusage): env = request._run_ns + llmid = llmusage.llmid async with get_sor_context(request._run_ns, 'llmage') as sor: sql = "select * from llm where id=${llmid}$" recs = await sor.sqlExe(sql, {'llmid': llmusage.llmid}) @@ -63,6 +64,7 @@ async def llm_accounting(request, llmusage): exception(f'{e}') raise e customerid = llmusage.userorgid + userid = llmusage.userid resellerid = recs[0].ownerid providerid = recs[0].providerid trans_amount = llmusage.amount