Explorar o código

fix:pdf详情

zqbao hai 8 meses
pai
achega
36a3d7214b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/report.go

+ 1 - 1
controllers/report.go

@@ -339,7 +339,7 @@ func (this *ReportController) PdfDetail() {
 		br.ErrMsg = "研报不存在或已删除,系统异常,Err:" + err.Error()
 		return
 	}
-	if err.Error() == utils.ErrNoRow() {
+	if reportPdf == nil {
 		// 尝试删除收藏列表的记录
 		models.DeleteMyReportByUserIdAndReportId(user.UserId, reportPdfId, utils.ReportTypePdf)
 		br.Msg = "研报不存在或已删除"