소스 검색

fix:添加报告提示

zqbao 9 달 전
부모
커밋
73858c0e1e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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 = "查询成功"