This commit is contained in:
邹宗楠
2023-03-20 17:27:47 +08:00
parent e6d34242cd
commit edd680602b
4 changed files with 265 additions and 263 deletions

View File

@@ -20,14 +20,13 @@ type SendMsgRes struct {
}
func (a *API) SendMsgByUinApp(parma map[string]interface{}) error {
if err := a.CheckTokenIsExpire(); err != nil {
if _, err := a.CheckTokenIsExpire(); err != nil {
return err
}
data, _ := json.Marshal(parma)
fmt.Println(string(data))
result, err := a.AccessAPI(BaseUrl+a.appId, PushMsgByCid, http.MethodPost, parma)
fmt.Println(err.Error())
if err != nil && !strings.Contains(err.Error(), "success") {
return err
}