fn parse_env_int(env: &str) -> Result<i32>Expand description
共用 helper: env 字符串 → trd_env int (0=sim / 1=real).
v1.4.102 codex 42 F2 (P2): typo (e.g. “prod” / “reel”) 现 reject — 之前 “non-real => 0” silent 把 typo 当 sim, 违 BUG-005 精神. 接受: “real” / “REAL” / “sim” / “simulate” / “SIM” / “” (空 → 默认 real).