This commit is contained in:
yumoqing 2025-10-27 15:43:35 +08:00
parent fb9c91839a
commit 8c0a074c33

View File

@ -27,7 +27,7 @@ class PricingProgram:
recs = await self.sor.R('pricing_spec', {'ptid': self.psid})
return recs
asyn def get_spec_by_id(self, psid):
async def get_spec_by_id(self, psid):
recs = await self.sor.R('pricing_spec', {'id': psid})
if len(recs) > 0:
return recs[0]
@ -60,7 +60,7 @@ async def pricing_program_charging(sor, pricing_program_id, data):
charges = []
for item in pp_items:
charge = item.copy()
spec = await pp.get_spec_by_psid(charge.psid)
spec = await pp.get_spec_by_id(charge.psid)
d = data.get(spec.spec_name)
if d is None:
continue