Explorar o código

限制未公开的研报推送模版消息

xyxie hai 2 meses
pai
achega
64159b4d9f
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      controllers/report.go

+ 6 - 0
controllers/report.go

@@ -1896,6 +1896,12 @@ func (this *ReportController) SendMsg() {
 		return
 	}
 
+	//
+	if reportInfo.IsPublicPublish != 1 {
+		br.Msg = "报告未公开"
+		return
+	}
+
 	// 更新报告发布时间
 	videoNameDate := `(` + time.Now().Format("0102") + `)`
 	if err = models.UpdateReportPublishTime(req.ReportId, videoNameDate); err != nil {