This commit is contained in:
wangchuxiao 2022-12-22 11:30:19 +08:00
parent 07c300f35f
commit e86e8820f3

View File

@ -174,6 +174,7 @@ func (g *Getui) Push(userIDList []string, title, detailContent, operationID stri
reqID := utils.OperationIDGenerator()
pushReq.RequestID = &reqID
pushReq.Audience = &Audience{Alias: []string{userIDList[0]}}
pushReq.PushChannel = &PushChannel{}
pushReq.PushChannel.Ios = &Ios{}
pushReq.PushChannel.Ios.Aps.Sound = "default"
pushReq.PushChannel.Ios.Aps.Alert = Alert{