瀏覽代碼

fix:图表授权token

Roc 2 月之前
父節點
當前提交
1872ee6853
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      services/report/report.go
  2. 1 0
      services/report/report_chapter.go

+ 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)
 		}
 	}