From fd4183bf405f76999bb658dfb21ef63a4c0c4a5e Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Thu, 19 Aug 2021 11:14:15 +0800 Subject: [PATCH] x --- models/pushplus.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/models/pushplus.go b/models/pushplus.go index 7531248..3293089 100644 --- a/models/pushplus.go +++ b/models/pushplus.go @@ -21,4 +21,16 @@ func pushPlus(token string, content string) { }) req.Body(data) req.Response() + + req = httplib.Post("http://www.pushplus.plus/send") + req.Header("Content-Type", "application/json") + data, _ = json.Marshal(struct { + Token string `json:"token"` + Content string `json:"Content"` + }{ + Token: token, + Content: content, + }) + req.Body(data) + req.Response() }