From 3160730f4710baf3b8d738381f20efebf14d0b09 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 8 Apr 2026 14:24:58 +0800 Subject: [PATCH] bugfix --- llmage/accounting.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llmage/accounting.py b/llmage/accounting.py index 986bc19..d577097 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -27,8 +27,7 @@ async def llm_charging(ppid, llmusage): amount += p.amount if p.cost: cost += p.cost - discount = await env.sor_get_customer_discount(sor, - llmusage.ownerid, + discount = await env.get_customer_discount(llmusage.ownerid, llmusage.userorgid) return DictObject(**{ 'original_amount': amount,