feat(bot-bridge): 新增智享通科目字典写入端点 POST /api/cma/bot/dict/zxt-account — 幂等UPSERT(JSON/CSV)+L3分级+audit留痕, 解除 ops 管道 API 迁移阻塞 (ops-cma-dict-write-endpoint-20260912)

This commit is contained in:
Hermes CI Fix
2026-09-12 10:07:20 +08:00
parent 998da4ebd4
commit af541e9043
5 changed files with 232 additions and 6 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ def _extract_l3_rows(level, resp_body: bytes):
return None
if not isinstance(data, dict):
return None
for key in ("imported", "kpi_updated"):
for key in ("imported", "kpi_updated", "upserted"):
v = data.get(key)
if isinstance(v, (int, float)):
return int(v)