|
@@ -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"`
|
|
|
+}
|
|
|
+
|
|
|
// SendMiniProgramReportWxMsg 推送报告微信模板消息-小程序链接
|
|
|
func SendMiniProgramReportWxMsg(reportId int) (err error) {
|
|
|
fmt.Println("推送模板消息1 services SendMsg:", reportId)
|
|
@@ -32,7 +43,7 @@ func SendMiniProgramReportWxMsg(reportId int) (err error) {
|
|
|
//go utils.SendEmail("SendMiniProgramReportWxMsg发送报告模版消息失败"+"【"+utils.APPNAME+"】"+"【"+utils.RunMode+"】"+time.Now().Format("2006-01-02 15:04:05"), "ReportId:"+reportIdStr+";"+msg+";Err:"+err.Error(), toUser)
|
|
|
}
|
|
|
}()
|
|
|
- fmt.Println("推送模板消息2 services SendMsg:", reportId)
|
|
|
+ fmt.Println("推送模板消息 services SendMsg:", reportId)
|
|
|
|
|
|
report, err := models.GetReportByReportId(reportId)
|
|
|
if err != nil {
|