This commit is contained in:
yumoqing 2025-10-27 13:57:37 +08:00
parent 4821948d65
commit 92c152aab9

View File

@ -25,8 +25,10 @@ class PricingProgram:
async def get_spec(self, psid): async def get_spec(self, psid):
debug(f'psid={psid}') debug(f'psid={psid}')
recs = await self.sor.R('pricing_spec', {'id', psid}) recs = await self.sor.R('pricing_spec', {'id': psid})
if len(recs) > 0:
return recs return recs
return None
async def get_remote_pricing(sor, charge, data): async def get_remote_pricing(sor, charge, data):
env = ServerEnv() env = ServerEnv()