feat(regulatory-info-package): 完善目录页码与组成成分填充

This commit is contained in:
2026-06-10 23:56:40 +08:00
parent 3bcf9647a1
commit 1bf8634373
13 changed files with 296 additions and 82 deletions

View File

@@ -32,8 +32,8 @@ def validate_template_config(config: dict) -> list[str]:
if not source_dir.exists():
errors.append(f"模板源目录不存在:{source_dir}")
templates = config.get("templates") or []
if len(templates) != 7:
errors.append("第1章监管信息模板配置必须包含 7 个模板。")
if len(templates) != 6:
errors.append("第1章监管信息模板配置必须包含 6 个模板。")
seen: set[str] = set()
for template in templates:
code = str(template.get("code") or "")
@@ -51,4 +51,3 @@ def validate_template_config(config: dict) -> list[str]:
if not output_name:
errors.append(f"模板 {code} 缺少 output_name。")
return errors