xyxie 1 vuosi sitten
vanhempi
commit
7e5e066fce
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      services/report.go

+ 1 - 1
services/report.go

@@ -188,7 +188,7 @@ func PublishReport(cont context.Context) (err error) {
 			_ = UpdateReportEs(item.Id, 2)
 
 			// 判断是否未发送模版消息,并且配置了立即推送模版消息的报告需要推送
-			if utils.SendWxTemplateEnable == "on" {
+			if utils.SendWxTemplateEnable == "1" {
 				if item.MsgIsSend == 0 && item.PreMsgSend == 1 {
 					_ = ReportSendTemplateMsg(item.Id)
 				}