Files
Nexus/docs/reports/2026-06-09-http-detail-zh-deploy-verification.md
T

22 lines
799 B
Markdown
Raw Normal View History

# HTTP API detail 中文化 — 生产部署验证(2026-06-09
## 部署范围
- `3ba78cd``http_errors_zh` 全局层(方案 A:字面量 detail 翻译)
- `a842af2` — auth reason / fallback 中文
- `1c0d7e9` — 服务层 ValueError 源头中文(方案 1
## 验证项
| # | 检查 | 命令/操作 | 期望 | 结果 |
|---|------|-----------|------|------|
| 1 | 健康检查 | `curl https://api.synaglobal.vip/health` | `ok` | |
| 2 | 404 字面量翻译 | 无 token 访问不存在 server id | `服务器不存在` | |
| 3 | 422 Pydantic | 非法 batch_id | 中文字段错误 | |
| 4 | str(exc) | 脚本重试不存在 execution | `执行记录不存在` | |
## 备注
- `/api/agent/*` 仍返回英文(设计如此)
- `f"SSH 连接失败: {e}"` 后缀未做方案 B