This commit is contained in:
yumoqing 2025-12-23 18:03:19 +08:00
parent d407b312cf
commit 5dec898ef5

View File

@ -108,9 +108,13 @@ async def pricing_program_charging(sor, pricing_program_id, data):
if spec.pricing_spec_mode == 'spec_amount':
if item.spec_value:
d = json.loads(item.spec_value)
matchs = True
for k,v in d.items():
if v != item['k']:
continue
matchs = False
break
if not matchs:
continue
cnt = data.get(spec.count_name, 1)
if charge.pricing_unit is None or charge.pricing_unit < 1: