Pārlūkot izejas kodu

Merge branch 'feature/pool325_report_public' into debug

xyxie 4 mēneši atpakaļ
vecāks
revīzija
6abea3bd5b
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      controllers/report.go

+ 6 - 0
controllers/report.go

@@ -1897,6 +1897,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 {