diff --git a/pricing/pricing.py b/pricing/pricing.py index 15da3f8..6bda05e 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -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: