@@ -265,6 +265,10 @@ func (this *EnglishReportController) Detail() {
}
item, err := models.GetEnglishReportById(reportId)
if err != nil {
+ if err.Error() == utils.ErrNoRow() {
+ br.Msg = "报告已被删除"
+ return
+ }
br.Msg = "获取失败"
br.ErrMsg = "获取失败,Err:" + err.Error()
return
@@ -692,6 +692,10 @@ func (this *ReportController) Detail() {
item, err := models.GetReportById(reportId)