fix #2860 migrate jpns to jpush (#2861)

This commit is contained in:
Wiky Lyu
2024-11-19 09:59:21 +08:00
committed by GitHub
parent 8471a0ef3b
commit 1df49ee718
6 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -89,9 +89,9 @@ func (j *JPush) Push(ctx context.Context, userIDs []string, title, content strin
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,
j.pushConf.JPush.PushURL,
map[string]string{
"Authorization": j.getAuthorization(j.pushConf.JPNS.AppKey, j.pushConf.JPNS.MasterSecret),
"Authorization": j.getAuthorization(j.pushConf.JPush.AppKey, j.pushConf.JPush.MasterSecret),
},
po,
resp,