From e7c2a50e2f1cd86e5336571d8111ae8dc475382b Mon Sep 17 00:00:00 2001 From: wood chen Date: Tue, 22 Oct 2024 18:18:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BA100KB=E4=BB=A5=E4=B8=8B?= =?UTF-8?q?=E4=B8=8D=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/router.go b/handler/router.go index 518459d..3713819 100644 --- a/handler/router.go +++ b/handler/router.go @@ -231,7 +231,7 @@ func Convert(c *fiber.Ctx) error { } // 新增:检查文件大小 - isSmall, err := helper.IsFileSizeSmall(rawImageAbs, 200*1024) // 200KB + isSmall, err := helper.IsFileSizeSmall(rawImageAbs, 100*1024) // 100KB if err != nil { log.Errorf("检查文件大小时出错: %v", err) return c.SendStatus(fiber.StatusInternalServerError)