From f6da967e835beb983a8d8eecbef7250c8a9fcf9f Mon Sep 17 00:00:00 2001 From: yangwei999 <348134071@qq.com> Date: Fri, 29 Mar 2024 17:05:48 +0800 Subject: [PATCH] fix hotpatch bug --- cve-vulner-manager/cve-ddd/app/hotpatch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cve-vulner-manager/cve-ddd/app/hotpatch.go b/cve-vulner-manager/cve-ddd/app/hotpatch.go index 3791f8f..d3dd3d6 100644 --- a/cve-vulner-manager/cve-ddd/app/hotpatch.go +++ b/cve-vulner-manager/cve-ddd/app/hotpatch.go @@ -117,12 +117,12 @@ func (h *hotPatchService) generateBulletinId() (int, error) { return 0, err } - thisYear := util.Year() - + maxID = strings.TrimSpace(maxID) if maxID == "" { return 1000, nil } + thisYear := util.Year() split := strings.Split(strings.Trim(maxID, ".xml"), "-") if split[3] != strconv.Itoa(thisYear) { return 1000, nil -- Gitee