Files
xk-hy-transit-go/scripts/integration-check.md

38 lines
901 B
Markdown
Raw Normal View History

2026-05-22 08:06:07 +08:00
# 联调检查清单
## 1. xk-api 拉取(云端)
```bash
curl -s -H "X-Hy-Transit-Token: YOUR_TOKEN" \
"https://api.example.com/api/hy/supervise/config"
curl -s -H "X-Hy-Transit-Token: YOUR_TOKEN" \
"https://api.example.com/api/hy/supervise/consult?date=2026-05-18"
```
期望:`code=0``result.items[]``payload``validation_errors`
## 2. forward-go内网
```bash
curl http://127.0.0.1:8080/health
```
## 3. transit-go外网 Windows
```bash
set XK_API_TOKEN=...
set HY_APP_KEY=...
go run ./cmd/transit --step=consult --date=2026-05-18
```
检查本机 `xk_hy_transit.hy_push_record` / `hy_push_log`
## 4. 与预览页对比
浏览器打开 `/hy-supervise-preview?key=xk888666&date=2026-05-18`,对比 consult/referral/recipe/verification 的 payload 字段与拉取接口一致。
## 5. 监管返回
`hy_push_log.msg_code=200` 表示业务成功。