From f40369d0610285d2fd68881e0885d92a5a4035e4 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Fri, 8 Apr 2022 17:12:11 +0800 Subject: [PATCH] getui --- internal/push/getui/push.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/push/getui/push.go b/internal/push/getui/push.go index 95080f0b8..ac40368ed 100644 --- a/internal/push/getui/push.go +++ b/internal/push/getui/push.go @@ -134,13 +134,13 @@ func (g *Getui) Auth(operationID string, timeStamp int64) (token string, expireT return respAuth.Token, int64(expire), err } -func (g *Getui) request(url, content interface{}, token string, returnStruct interface{}, operationID string) error { +func (g *Getui) request(url string, content interface{}, token string, returnStruct interface{}, operationID string) error { con, err := json.Marshal(content) if err != nil { return err } client := &http.Client{} - req, err := http.NewRequest("POST", config.Config.Push.Getui.PushUrl, bytes.NewBuffer(con)) + req, err := http.NewRequest("POST", config.Config.Push.Getui.PushUrl+url, bytes.NewBuffer(con)) if err != nil { return err }