From 55aa6f32143475a73a8e427be2663f8c38d9b68a Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Mon, 30 Dec 2024 11:51:30 +0800 Subject: [PATCH] expire --- storage/minio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/minio.go b/storage/minio.go index e008eda..df822b8 100644 --- a/storage/minio.go +++ b/storage/minio.go @@ -113,7 +113,7 @@ func (s *Minio) Url(objectName string, expire time.Duration) string { return err.Error() } - if expire > time.Hour*24*7 { + if expire > time.Hour*24*7 || expire == -1 { expire = time.Hour * 24 * 7 } var params url.Values