From d1e96e4b2ca73cf94814300afffe54ccaee5eb88 Mon Sep 17 00:00:00 2001 From: "jiaji.H" Date: Tue, 6 Jan 2026 10:25:21 +0800 Subject: [PATCH] =?UTF-8?q?Updata=EF=BC=9A=E6=9B=B4=E6=96=B0=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E8=AF=AF=E5=88=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/file/file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/service/file/file.go b/pkg/service/file/file.go index 239c5a0..050af65 100644 --- a/pkg/service/file/file.go +++ b/pkg/service/file/file.go @@ -107,8 +107,8 @@ func Delete(ctx *gin.Context) { nowYear := time.Now().Year() nowMonth := time.Now().Month() nowYearPath := fmt.Sprintf("/fiee/video/%d", nowYear) - nowMonthPath := fmt.Sprintf("/fiee/video/%d/%d", nowYear, nowMonth) - if path == nowYearPath || path == nowMonthPath || path == "/fiee" || path == "/fiee/video" { + nowMonthPath := fmt.Sprintf("/fiee/video/%d/%d-%d", nowYear, nowYear, nowMonth) + if path == nowYearPath || path == nowMonthPath || path == "/fiee" || path == "/fiee/video" || path == "/fiee/video/old" { service.Error(ctx, errors.New("无法删除该目录")) return }