This commit is contained in:
richboo111
2023-07-06 15:03:44 +08:00
parent eb6ee369b2
commit f85f429c6a
3 changed files with 39 additions and 1 deletions

View File

@@ -34,7 +34,26 @@ func TestCidSend(t *testing.T) {
"push_channel": map[string]interface{}{
"android": map[string]interface{}{
"ups": map[string]interface{}{
"transmission": "厂商透传消息",
"notification": map[string]interface{}{
"title": "火车南站店",
"body": "老板,你有新订单了请及时查看(美团#1号订单",
"click_type": "startapp", // 写 startapp
"notify_id": 1132345, // 每次通知需要不一样 范围0-2147483647
},
"options": map[string]interface{}{
"XM": map[string]interface{}{
"/extra.channel_id": "小米的渠道ID", // 订单类填写108892消息通知类填写108898
},
"HW": map[string]interface{}{
"/message/android/category": "填写华为侧的category取值", // 订单类填写WORK消息通知类填写IM
},
"OP": map[string]interface{}{
"/channel_id": "填写OPPO平台登记的渠道ID", // 订单类填写10110消息通知类填写10111
},
"VV": map[string]interface{}{
"/category": "填写对应的ID", // 订单类填写ORDER消息通知类填写IM
},
},
},
},
"ios": map[string]interface{}{