This commit is contained in:
yumoqing 2025-10-27 14:01:03 +08:00
parent d21a195acf
commit d1f5095837

View File

@ -59,7 +59,7 @@ async def pricing_program_charging(sor, pricing_program_id, data):
elif spec.pricing_spec_mode == 'spec_amount': elif spec.pricing_spec_mode == 'spec_amount':
if charge.pricing_unit is None or charge.pricing_unit < 1: if charge.pricing_unit is None or charge.pricing_unit < 1:
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) charges.append(charge)
elif spec.pricing_spec_mode == 'remote_pricing': elif spec.pricing_spec_mode == 'remote_pricing':
charge.amount = await get_remote_pricing(sor, charge, params=d) charge.amount = await get_remote_pricing(sor, charge, params=d)