Explorar o código

fix:模板消息推送的bug修复

Roc hai 7 meses
pai
achega
c7f6b491b9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/report.go

+ 1 - 1
controllers/report.go

@@ -1912,7 +1912,7 @@ func (this *ReportController) SendMsg() {
 	// 可能存在历史数据两个只推了一个所以此处加个判断
 	// 推送模板消息
 	if reportInfo.MsgIsSend == 0 {
-		go services.SendMiniProgramReportWxMsg(req.ReportId)
+		services.SendMiniProgramReportWxMsg(reportInfo.Id)
 	}
 
 	// 更新推送消息状态