Browse Source

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

xyxie 2 months ago
parent
commit
64159b4d9f
1 changed files with 6 additions and 0 deletions
  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 {