xiaomi channel id
This commit is contained in:
parent
e90c68f339
commit
f304ca869c
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue