|
@@ -15,6 +15,17 @@ import (
|
|
|
"strings"
|
|
|
)
|
|
|
|
|
|
+type SendTemplateResponse struct {
|
|
|
+ Errcode int `json:"errcode"`
|
|
|
+ Errmsg string `json:"errmsg"`
|
|
|
+ MsgID int `json:"msgid"`
|
|
|
+}
|
|
|
+
|
|
|
+type ClearQuotaResponse struct {
|
|
|
+ Errcode int `json:"errcode"`
|
|
|
+ Errmsg string `json:"errmsg"`
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
func SendMiniProgramReportWxMsg(reportId int) (err error) {
|
|
|
fmt.Println("推送模板消息1 services SendMsg:", reportId)
|
|
@@ -32,7 +43,7 @@ func SendMiniProgramReportWxMsg(reportId int) (err error) {
|
|
|
|
|
|
}
|
|
|
}()
|
|
|
- fmt.Println("推送模板消息2 services SendMsg:", reportId)
|
|
|
+ fmt.Println("推送模板消息 services SendMsg:", reportId)
|
|
|
|
|
|
report, err := models.GetReportByReportId(reportId)
|
|
|
if err != nil {
|