mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-27 05:52:29 +08:00
fix(push): jpush error response
This commit is contained in:
parent
f78d62082e
commit
00aaa61429
@ -82,11 +82,11 @@ func (j *JPush) Push(ctx context.Context, userIDs []string, title, content strin
|
|||||||
pushObj.SetNotification(&no)
|
pushObj.SetNotification(&no)
|
||||||
pushObj.SetMessage(&msg)
|
pushObj.SetMessage(&msg)
|
||||||
pushObj.SetOptions(&opt)
|
pushObj.SetOptions(&opt)
|
||||||
var resp map[string]string
|
var resp map[string]any
|
||||||
return j.request(ctx, pushObj, &resp, 5)
|
return j.request(ctx, pushObj, &resp, 5)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (j *JPush) request(ctx context.Context, po body.PushObj, resp *map[string]string, timeout int) error {
|
func (j *JPush) request(ctx context.Context, po body.PushObj, resp *map[string]any, timeout int) error {
|
||||||
err := j.httpClient.PostReturn(
|
err := j.httpClient.PostReturn(
|
||||||
ctx,
|
ctx,
|
||||||
j.pushConf.JPNS.PushURL,
|
j.pushConf.JPNS.PushURL,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user