This commit is contained in:
anlicheng 2025-06-26 13:23:21 +08:00
parent 1508197e6b
commit 7edc7ca758

View File

@ -4,37 +4,36 @@
### 1. 批量推送消息 ### 1. 批量推送消息
url: "/api/push"
method: POST
body:
url: "/api/push" ```json
method: POST [
body: {
"device_token": "b48b911e85874b403ce80cbb33864e8ed6f06455e80310b0f6b95e672a3e39dc",
"title": "动物狂响曲",
"body": "第7集(校服与被毛更深处),bilibili已更新",
"custom_data": {
"target": "detail",
"params": {
"drama_id": 1234
}
}
},
```json {
[ "device_token": "b48b911e85874b403ce80cbb33864e8ed6f06455e80310b0f6b95e672a3e39dc",
{ "title": "动物狂响曲",
"device_token": "b48b911e85874b403ce80cbb33864e8ed6f06455e80310b0f6b95e672a3e39dc", "body": "第7集(校服与被毛更深处),bilibili已更新",
"title": "动物狂响曲", "custom_data": {
"body": "第7集(校服与被毛更深处),bilibili已更新", "target": "detail",
"custom_data": { "params": {
"target": "detail", "drama_id": 1234
"params": { }
"drama_id": 1234 }
} }
} ]
}, ```
字段说明:
{ 1. custom_data使用指定页面的跳转逻辑target字段目前固定为: detail参数部分的: drama_id指定为要进入的详情页面id
"device_token": "b48b911e85874b403ce80cbb33864e8ed6f06455e80310b0f6b95e672a3e39dc",
"title": "动物狂响曲",
"body": "第7集(校服与被毛更深处),bilibili已更新",
"custom_data": {
"target": "detail",
"params": {
"drama_id": 1234
}
}
}
]
```
字段说明:
custom_data使用指定页面的跳转逻辑target字段目前固定为: detail参数部分的: drama_id指定为要进入的详情页面id