Browse Source

fix:添加报告提示

zqbao 7 months ago
parent
commit
73858c0e1e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      controllers/report.go

+ 2 - 0
controllers/report.go

@@ -831,6 +831,8 @@ func (this *ReportNoAuthController) Detail() {
 	if result.Ret == 200 && result.Data.Report == nil {
 		// 报告不存在, 就尝试删除推送的记录
 		models.DeleteReportPushStatusByReportId(reportId, utils.ReportTypeEta)
+		br.Msg = "报告已删除或未发布"
+		return
 	}
 
 	br.Msg = "查询成功"