Skip to content

Commit

Permalink
fix(push): jpush error response
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed Nov 13, 2024
1 parent f78d620 commit 00aaa61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/push/offlinepush/jpush/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ func (j *JPush) Push(ctx context.Context, userIDs []string, title, content strin
pushObj.SetNotification(&no)
pushObj.SetMessage(&msg)
pushObj.SetOptions(&opt)
var resp map[string]string
var resp map[string]any
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(
ctx,
j.pushConf.JPNS.PushURL,
Expand Down

0 comments on commit 00aaa61

Please sign in to comment.