mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-09-02 04:59:50 +08:00
push
This commit is contained in:
parent
7445b84756
commit
428e5a7a4e
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user