diff --git a/features/security/account.go b/features/security/account.go index d8c7d3ad..0e593d8b 100644 --- a/features/security/account.go +++ b/features/security/account.go @@ -302,6 +302,7 @@ func LoginOMC(w http.ResponseWriter, r *http.Request) { if user != nil { // 缓存用户信息 account.CacheLoginUser(user) + redis.SetByExpire("", "session_token", token, time.Second*1800) ctx.JSON(w, 200, result.OkData(map[string]any{ "accessToken": token, }))