统一时间格式和时区

This commit is contained in:
yml2213
2026-07-31 12:57:17 +08:00
parent 667bfbde06
commit 949a0eb8f7
24 changed files with 342 additions and 49 deletions
+2
View File
@@ -47,6 +47,8 @@
两套签名串不同,即使 Header 名相似也不能互相套用。
所有对外返回和回调里的时间字段统一使用 RFC3339 秒级北京时间,例如 `2026-07-30T17:53:58+08:00`;请求侧仍接受合法 RFC3339 时间。
## 4. 状态语言
内部订单使用 `payment_status` + `fulfillment_status` 两组状态;源头侧为了兼容对接,返回的是更贴近发货系统的旧状态名。
+3 -3
View File
@@ -22,7 +22,7 @@
"order_no": "O202607240733306742",
"ship_status": "success",
"provider_order_no": "6a6322a81b3b421994137260",
"shipped_at": "2026-07-24T08:30:33.000Z",
"shipped_at": "2026-07-24T16:30:33+08:00",
"fail_reason": "",
"game_uid": "4808146277",
"role_name": "巫师哈丁12",
@@ -38,7 +38,7 @@
"order_no": "O202607240733306742",
"ship_status": "failed",
"provider_order_no": "6a6322a81b3b421994137260",
"shipped_at": "2026-07-24T08:30:33.000Z",
"shipped_at": "2026-07-24T16:30:33+08:00",
"fail_reason": "角色名不存在,渠道服校验失败",
"game_uid": "4808146277",
"role_name": "巫师哈丁12",
@@ -54,7 +54,7 @@
| `order_no` | 是 | 店铺订单号 |
| `ship_status` | 是 | 仅使用 `success` / `failed` |
| `provider_order_no` | 否 | 上游发货单号 |
| `shipped_at` | 否 | RFC3339 时间;`success` 未传时可由服务端补时间 |
| `shipped_at` | 否 | RFC3339 时间,建议秒级北京时间`success` 未传时可由服务端补时间 |
| `fail_reason` | 失败时是 | `failed` 时必须填详细原因 |
| `game_channel` | 否 | 账号区服 |
| `game_uid` | 否 | 游戏角色 UUID |
+2 -1
View File
@@ -37,6 +37,7 @@
- `code = 0`:成功
- `code != 0`:失败,看 `message`
- 时间字段统一使用 RFC3339 秒级北京时间,例如 `2026-07-30T17:53:58+08:00`;请求侧仍接受合法 RFC3339 时间。
---
@@ -239,7 +240,7 @@ Content-Type: application/json
| `order_no` | 是 | 店铺订单号 |
| `ship_status` | 是 | 仅 `success` / `failed` |
| `provider_order_no` | 否 | 你们系统的发货单号 |
| `shipped_at` | 否 | RFC3339success 未传则用服务端时间 |
| `shipped_at` | 否 | RFC3339 时间,建议秒级北京时间;success 未传则用服务端时间 |
| `fail_reason` | 失败时是 | `failed` 时必填,填写详细失败原因 |
### 4.2 ship_status → 我们订单状态