Roc 2 сар өмнө
parent
commit
1872ee6853

+ 1 - 0
services/report/report.go

@@ -640,6 +640,7 @@ func GetReportDetail(userinfo user.UserInfo, reportId int) (reportDetail respons
 		if isOpenChartExpired {
 			tokenMap := make(map[string]string)
 			reportDetail.ReportInfo.Content = HandleReportContent(reportDetail.ReportInfo.Content, "add", tokenMap)
+			reportDetail.ReportInfo.ContentSub = HandleReportContent(reportDetail.ReportInfo.ContentSub, "add", tokenMap)
 			for _, v := range reportTypeList {
 				v.Content = HandleReportContent(v.Content, "add", tokenMap)
 			}

+ 1 - 0
services/report/report_chapter.go

@@ -274,6 +274,7 @@ func GetChapterDetail(user user.UserInfo, reportChapterId int) (reportChapterDet
 		if isOpenChartExpired {
 			tokenMap := make(map[string]string)
 			reportChapterItem.Content = HandleReportContent(reportChapterItem.Content, "add", tokenMap)
+			reportChapterItem.ContentSub = HandleReportContent(reportChapterItem.ContentSub, "add", tokenMap)
 		}
 	}