diff --git a/deploy/profile-scripts/mofin_db.py b/deploy/profile-scripts/mofin_db.py index b18d565f..606f610b 100644 --- a/deploy/profile-scripts/mofin_db.py +++ b/deploy/profile-scripts/mofin_db.py @@ -1203,7 +1203,8 @@ def reconcile_signal_from_analysis(conn, code: str) -> str: fa, old_sig = row[0] or "", row[1] or "" verdict = "" # ── 2026-08-25 机器可读结论优先(SIGNAL_JSON 行存在则直接用,散文匹配降级为兜底)── - _mj = re.search(r'^SIGNAL_JSON:\s*(\{.*\})\s*$', fa, re.M) + import re as _re3 # 函数内局部导入(模块级无 re) + _mj = _re3.search(r'^SIGNAL_JSON:\s*(\{.*\})\s*$', fa, _re3.M) if _mj: try: import json as _js2