瀏覽代碼

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

Roc 9 月之前
父節點
當前提交
6ba018376c
共有 1 個文件被更改,包括 1 次插入2 次删除
  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)
 	}
 
 	// 更新推送消息状态