优化每日推送接口/api/v1/playx/daily-push

This commit is contained in:
2026-03-30 16:19:14 +08:00
parent ae7d7940d9
commit 6c402d4221
6 changed files with 24 additions and 17 deletions

View File

@@ -15,8 +15,11 @@
* 方法:`POST`
* 路径:`/api/v1/playx/daily-push`
#### Header签名校验:可选)
`playx.daily_push_secret` 配置非空时,需要携带:
#### Header多语言,可选)
- `lang`: `zh`/`zh-cn` 返回中文(默认);`en` 返回英文
#### Header签名校验HMAC 必填)
`playx.daily_push_secret` 配置非空时需要携带HMAC
- `X-Request-Id`:请求 ID
- `X-Timestamp`:时间戳
- `X-Signature`签名HMAC_SHA256
@@ -26,6 +29,9 @@
- `expected = hash_hmac('sha256', canonical, daily_push_secret)`
- 校验:`hash_equals(expected, X-Signature)`
说明:
- 本项目对接方案为 **仅启用 HMAC**,不使用 `Authorization` 头做校验。
#### Body
| 字段 | 类型 | 必填 | 说明 |
|------|------|------|------|