diff --git a/app/http/middleware/session.go b/app/http/middleware/session.go index b9f23e648a..c0a775df0e 100644 --- a/app/http/middleware/session.go +++ b/app/http/middleware/session.go @@ -34,7 +34,7 @@ func Session() http.Middleware { } // 刷新会话 - if err := ctx.Request().Session().Regenerate(); err == nil { + /*if err := ctx.Request().Session().Regenerate(); err == nil { ctx.Response().Cookie(http.Cookie{ Name: ctx.Request().Session().GetName(), Value: ctx.Request().Session().GetID(), @@ -45,7 +45,7 @@ func Session() http.Middleware { HttpOnly: facades.Config().GetBool("session.http_only"), SameSite: facades.Config().GetString("session.same_site"), }) - } + }*/ ctx.WithValue("user_id", userID) ctx.Request().Next() diff --git a/config/panel.go b/config/panel.go index a9a9249c68..d5613c8a5c 100644 --- a/config/panel.go +++ b/config/panel.go @@ -8,7 +8,7 @@ func init() { config := facades.Config() config.Add("panel", map[string]any{ "name": "耗子面板", - "version": "v2.2.21", + "version": "v2.2.22", "ssl": config.Env("APP_SSL", false), }) }