This commit is contained in:
yumoqing 2026-05-22 17:55:32 +08:00
parent 0723395119
commit dfe961e4c9

View File

@ -48,6 +48,7 @@ async def checkCustomerBalance(llmid, userid, userorgid, catelogid=None):
balance = 0.00
tpac = await get_user_tpac(userid)
if tpac:
debug(f'{tpac=}')
balance = await get_tpac_balance(tpac, userid)
else:
async with get_sor_context(env, 'accounting') as sor: