x
This commit is contained in:
parent
fd4183bf40
commit
db0cf07f26
@ -10,27 +10,21 @@ func pushPlus(token string, content string) {
|
||||
if token == "" {
|
||||
return
|
||||
}
|
||||
data, _ := json.Marshal(struct {
|
||||
Token string `json:"token"`
|
||||
Content string `json:"content"`
|
||||
Template string `json:"template"`
|
||||
}{
|
||||
Token: token,
|
||||
Content: content,
|
||||
Template: "txt",
|
||||
})
|
||||
req := httplib.Post("http://pushplus.hxtrip.com/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()
|
||||
|
||||
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()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user