xiaomi channel id

This commit is contained in:
jiangyong27 2024-03-04 11:48:28 +08:00
parent e90c68f339
commit f304ca869c
1 changed files with 9 additions and 0 deletions

View File

@ -15,6 +15,7 @@ type GetuiConfig struct {
AppId string
AppKey string
MasterSecret string
XMChannelId string
}
type GetuiStatus struct {
@ -139,6 +140,14 @@ func (g *Getui) Push(req *GetuiMessage) (*GetuiPushRsp, error) {
"notify_id": cast.ToInt64(req.NotifyId),
"intent": req.Intent,
},
"options": map[string]interface{}{
"ALL": map[string]interface{}{
"channel": "default",
},
"XM": map[string]interface{}{
"/extra.channel_id": g.config.XMChannelId,
},
},
},
},
}