fix(router): change image file size limit from 100KB to 30KB

This commit is contained in:
wood chen 2024-10-23 05:17:52 +08:00
parent f241273bc4
commit 317ff650e3

View File

@ -135,7 +135,7 @@ func Convert(c *fiber.Ctx) error {
}
// 处理图片
isSmall, err := helper.IsFileSizeSmall(rawImageAbs, 100*1024) // 100KB
isSmall, err := helper.IsFileSizeSmall(rawImageAbs, 30*1024) // 30KB
if err != nil {
processErr = fmt.Errorf("检查文件大小时出错: %v", err)
return