|
@@ -16,6 +16,7 @@ import (
|
|
|
|
|
|
// SendMiniProgramReportWxMsg 推送报告微信模板消息-小程序链接
|
|
|
func SendMiniProgramReportWxMsg(reportId int) (err error) {
|
|
|
+ fmt.Println("推送模板消息1 services SendMsg:", reportId)
|
|
|
var msg string
|
|
|
reportIdStr := strconv.Itoa(reportId)
|
|
|
defer func() {
|
|
@@ -26,7 +27,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("推送模板消息 services SendMsg:", reportId)
|
|
|
+ fmt.Println("推送模板消息2 services SendMsg:", reportId)
|
|
|
|
|
|
report, err := models.GetReportByReportId(reportId)
|
|
|
if err != nil {
|