|
|
@ -168,6 +168,9 @@ func (g *Getui) Push(userIDList []string, title, detailContent, operationID stri
|
|
|
|
var IsAsync = true
|
|
|
|
var IsAsync = true
|
|
|
|
pushReq.IsAsync = &IsAsync
|
|
|
|
pushReq.IsAsync = &IsAsync
|
|
|
|
pushReq.Taskid = &taskID
|
|
|
|
pushReq.Taskid = &taskID
|
|
|
|
|
|
|
|
pushReq.Audience = struct {
|
|
|
|
|
|
|
|
Alias []string `json:"alias"`
|
|
|
|
|
|
|
|
}{Alias: userIDList}
|
|
|
|
err = g.request(BatchPushURL, pushReq, token, &pushResp, operationID)
|
|
|
|
err = g.request(BatchPushURL, pushReq, token, &pushResp, operationID)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
reqID := utils.OperationIDGenerator()
|
|
|
|
reqID := utils.OperationIDGenerator()
|
|
|
|