dimension_apn/README.md

43 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 基于erlang的推送服务
## mysql
mysql -h127.0.0.1 -uroot -p'r3a-7Qrh#3Q'
## api接口
### 1. 批量推送消息
url: "/api/push?env=prod|dev"
method: POST
body:
[
{
"device_token": "b48b911e85874b403ce80cbb33864e8ed6f06455e80310b0f6b95e672a3e39dc",
"title": "动物狂响曲",
"body": "第7集(校服与被毛更深处),bilibili已更新",
"unread_num": 10,
"custom_data": {
"target": "detail",
"params": {
"drama_id": 1234
}
}
},
{
"device_token": "b48b911e85874b403ce80cbb33864e8ed6f06455e80310b0f6b95e672a3e39dc",
"title": "动物狂响曲",
"body": "第7集(校服与被毛更深处),bilibili已更新",
"custom_data": {
"target": "detail",
"params": {
"drama_id": 1234
}
}
}
]
字段说明:
1. custom_data使用指定页面的跳转逻辑target字段目前固定为: detail参数部分的: drama_id指定为要进入的详情页面id