Parcourir la source

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

Roc il y a 9 mois
Parent
commit
6ba018376c
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      controllers/report.go

+ 1 - 2
controllers/report.go

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