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)