This commit is contained in:
yumoqing 2026-03-25 14:40:53 +08:00
parent e6c8cdacd6
commit d65bc52f07

View File

@ -209,7 +209,7 @@ class PricingProgram:
'pricings': newpricings
}
debug(f'{d=}')
ppt.pricing_data = yaml.dump(d)
ppt.pricing_data = yaml.dump(d, allow_unicode=True)
await sor.U('pricing_program_timing', {
'id': ppt.id,
'pricing_data': ppt.pricing_data
@ -246,7 +246,7 @@ class PricingProgram:
@staticmethod
def pp_app2db(pp):
try:
pp.pricing_spec = yaml.dump(pp.pricing_spec)
pp.pricing_spec = yaml.dump(pp.pricing_spec, allow_unicode=True)
except Exception as e:
e = f'{pp.pricing_spec}:导出到yaml失败'
exception(e)
@ -264,7 +264,7 @@ class PricingProgram:
@staticmethod
def ppt_app2db(ppt):
try:
ppt.pricing_data = yaml.dump(ppt.pricing_data)
ppt.pricing_data = yaml.dump(ppt.pricing_data, allow_unicode=True)
except Exception as e:
e = f'{ppt.pricing_data}:yaml数据格式错误'
exception(e)