在前后端开发联调前 的提交20260223
This commit is contained in:
@@ -53,6 +53,7 @@ DEFAULT_LIST_KEYS: Tuple[str, ...] = (
|
||||
"goodsCategoryList",
|
||||
"orderGoodsList",
|
||||
"orderGoodsLedgers",
|
||||
"staffProfiles",
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -174,7 +174,12 @@ def build_recording_client(
|
||||
tz_name = _cfg_get(cfg, "app.timezone", "Asia/Shanghai") or "Asia/Shanghai"
|
||||
tz = ZoneInfo(tz_name)
|
||||
ts = datetime.now(tz).strftime("%Y%m%d-%H%M%S")
|
||||
fetch_root = _cfg_get(cfg, "pipeline.fetch_root") or _cfg_get(cfg, "io.export_root") or "export/JSON"
|
||||
fetch_root = _cfg_get(cfg, "pipeline.fetch_root") or _cfg_get(cfg, "io.export_root")
|
||||
if not fetch_root:
|
||||
raise RuntimeError(
|
||||
"EXPORT_ROOT / FETCH_ROOT 未配置。"
|
||||
"请在根 .env 中设置,参考 .env.template"
|
||||
)
|
||||
task_upper = str(task_code).upper()
|
||||
output_dir = Path(fetch_root) / task_upper / f"{task_upper}-{run_id}-{ts}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user