diff --git a/initialization/routes.go b/initialization/routes.go index d1d2fb1..c177bd4 100644 --- a/initialization/routes.go +++ b/initialization/routes.go @@ -19,7 +19,8 @@ func InitRoute() { } gin.SetMode(mode) ginEngine := gin.New() - + // 增加请求体大小限制为 10MB + ginEngine.MaxMultipartMemory = 10 << 20 ginEngine.Use( // 启用CORS中间件 middleware.Cors(),