From d65bc52f07c706b7ce4d51c298279c07b8ce0ef5 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 25 Mar 2026 14:40:53 +0800 Subject: [PATCH] bugfix --- pricing/pricing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pricing/pricing.py b/pricing/pricing.py index cfebfb1..482dc70 100644 --- a/pricing/pricing.py +++ b/pricing/pricing.py @@ -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)