|
@@ -4,6 +4,7 @@ import (
|
|
|
"archive/zip"
|
|
|
"encoding/json"
|
|
|
"errors"
|
|
|
+ "eta/eta_mobile/cache"
|
|
|
"eta/eta_mobile/models"
|
|
|
"eta/eta_mobile/models/report"
|
|
|
"eta/eta_mobile/models/report_approve"
|
|
@@ -1249,6 +1250,9 @@ func PublishReport(reportId int, reportUrl string, sysUser *system.Admin) (tips
|
|
|
go handleReportPermission(int64(reportInfo.Id), minClassifyId)
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ go cache.RagEtaReportOpToCache(reportInfo.Id, 0, `publish`)
|
|
|
+
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -1367,6 +1371,9 @@ func PublishChapterReport(reportInfo *models.Report, reportUrl string, sysUser *
|
|
|
go Report2pdfAndJpeg(reportPdfUrl, reportId, 1)
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ go cache.RagEtaReportOpToCache(reportInfo.Id, 0, `publish`)
|
|
|
+
|
|
|
return
|
|
|
}
|
|
|
|