瀏覽代碼

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

xyxie 2 月之前
父節點
當前提交
64159b4d9f
共有 1 個文件被更改,包括 6 次插入0 次删除
  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 {