From 5f79b2ef447aa15f1eaee6d4fadc989eab98f49e Mon Sep 17 00:00:00 2001 From: luotianqi777 Date: Mon, 8 May 2023 14:42:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0html=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/report/html.go | 2 +- util/report/html_tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/util/report/html.go b/util/report/html.go index 23e4837..911fe03 100644 --- a/util/report/html.go +++ b/util/report/html.go @@ -75,6 +75,6 @@ func Html(dep *model.DepTree, taskInfo TaskInfo) []byte { return []byte{} } else { // 替换模板数据 - return bytes.Replace(index, []byte("N$}"), append(data, '}'), 1) + return bytes.Replace(index, []byte(`"此处填充json数据"`), data, 1) } } diff --git a/util/report/html_tpl b/util/report/html_tpl index 90a4ce3..4e28538 100644 --- a/util/report/html_tpl +++ b/util/report/html_tpl @@ -1,2 +1,2 @@ -OpenSCA开源组件检测报告
\ No newline at end of file +OpenSCA开源组件检测报告
\ No newline at end of file -- Gitee