From d1f5095837663f5fa88297f940c8ad8dc815fe94 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 27 Oct 2025 14:01:03 +0800 Subject: [PATCH] bugfix --- pricing/pricing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pricing/pricing.py b/pricing/pricing.py index 9c6f60a..e180a84 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -59,7 +59,7 @@ async def pricing_program_charging(sor, pricing_program_id, data): elif spec.pricing_spec_mode == 'spec_amount': if charge.pricing_unit is None or charge.pricing_unit < 1: charge.pricing_unit = 1 - charge.amount = d * charge_amount / charge.pricing_unit + charge.amount = d * charge.pricing_amount / charge.pricing_unit charges.append(charge) elif spec.pricing_spec_mode == 'remote_pricing': charge.amount = await get_remote_pricing(sor, charge, params=d)