增加推送
This commit is contained in:
parent
38acc17d75
commit
7df88e1b86
|
@ -4,8 +4,6 @@ import (
|
||||||
"encoding/base64"
|
"encoding/base64"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/imroc/req/v3"
|
|
||||||
|
|
||||||
"github.com/huoxue1/study_xxqg/lib"
|
"github.com/huoxue1/study_xxqg/lib"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -15,7 +13,6 @@ func PushMessage(title, content, message, pushID string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
c := req.C()
|
c := req.C()
|
||||||
c.SetProxyURL("http://127.0.0.1:8898")
|
|
||||||
response, err := c.R().SetBodyJsonMarshal(map[string]interface{}{
|
response, err := c.R().SetBodyJsonMarshal(map[string]interface{}{
|
||||||
"platform": "all",
|
"platform": "all",
|
||||||
"audience": map[string][]string{
|
"audience": map[string][]string{
|
||||||
|
|
Loading…
Reference in New Issue