diff --git a/routers/controllers/admin.go b/routers/controllers/admin.go index 2b02e80..5f8e8de 100644 --- a/routers/controllers/admin.go +++ b/routers/controllers/admin.go @@ -314,7 +314,7 @@ func AdminGetFile(c *gin.Context) { res := service.Get(c) // 是否需要重定向 if res.Code == -301 { - c.Redirect(301, res.Data.(string)) + c.Redirect(302, res.Data.(string)) return } // 是否有错误发生