From 66cc3955e28fd094b51e405d3efa4ef696224a4d Mon Sep 17 00:00:00 2001 From: yangwei999 <348134071@qq.com> Date: Fri, 22 Dec 2023 17:11:26 +0800 Subject: [PATCH] fix sa_type --- cve-vulner-manager/models/function.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cve-vulner-manager/models/function.go b/cve-vulner-manager/models/function.go index 640289e..7f417e4 100644 --- a/cve-vulner-manager/models/function.go +++ b/cve-vulner-manager/models/function.go @@ -4,6 +4,7 @@ import "strings" const ( SaFileRecordSa = "sa" + SaFileRecordBa = "ba" SaFileRecordHotPatch = "hotPatch" ) @@ -12,5 +13,9 @@ func (sa *SaFileRecord) GenSaType() string { return SaFileRecordHotPatch } + if strings.Contains(sa.FileName, "BA") { + return SaFileRecordBa + } + return SaFileRecordSa } -- Gitee