This commit is contained in:
yumoqing 2026-04-20 22:06:01 +08:00
parent 733a8d5b35
commit 07403486dc

View File

@ -375,6 +375,7 @@ order by b.enabled_date desc"""
e = Exception(f'config_data is None, {yamlstr=}') e = Exception(f'config_data is None, {yamlstr=}')
exception(f'{e=}') exception(f'{e=}')
raise e raise e
config_data = config_data.copy()
d = None d = None
try: try:
d = yaml.safe_load(yamlstr) d = yaml.safe_load(yamlstr)
@ -388,7 +389,6 @@ order by b.enabled_date desc"""
if not d.pricings: if not d.pricings:
exception(f'{d} has not "pricings"') exception(f'{d} has not "pricings"')
raise Exception(f'定价定义中没有pricing数据') raise Exception(f'定价定义中没有pricing数据')
formula = d.formula
ret_items = [] ret_items = []
for i, p in enumerate(d.pricings): for i, p in enumerate(d.pricings):
if not p.formula: if not p.formula: