From 0a9ebf48cf24c523d0b84406511e37b830538391 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 23 May 2026 17:20:26 +0800 Subject: [PATCH] buggix --- llmage/accounting.py | 2 +- llmage/utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/llmage/accounting.py b/llmage/accounting.py index a0c5d12..fe56b07 100644 --- a/llmage/accounting.py +++ b/llmage/accounting.py @@ -47,8 +47,8 @@ async def checkCustomerBalance(llmid, userid, userorgid, catelogid=None): return True balance = 0.00 tpac = await get_user_tpac(userid) + debug(f'{tpac=}') if tpac: - debug(f'{tpac=}') balance = await get_tpac_balance(tpac, userid) else: async with get_sor_context(env, 'accounting') as sor: diff --git a/llmage/utils.py b/llmage/utils.py index 8f7dae0..088989e 100644 --- a/llmage/utils.py +++ b/llmage/utils.py @@ -28,6 +28,7 @@ async def get_user_tpac(userid): recs = await sor.R('users', {'id': userid}) if recs: tpac = config.tpacs.get(recs[0].sync_from) + debug(f'{userid=},{recs[0].sync_from=},{tpac=} return tpac return None