fix: 旧登录session_token记录
This commit is contained in:
@@ -302,6 +302,7 @@ func LoginOMC(w http.ResponseWriter, r *http.Request) {
|
|||||||
if user != nil {
|
if user != nil {
|
||||||
// 缓存用户信息
|
// 缓存用户信息
|
||||||
account.CacheLoginUser(user)
|
account.CacheLoginUser(user)
|
||||||
|
redis.SetByExpire("", "session_token", token, time.Second*1800)
|
||||||
ctx.JSON(w, 200, result.OkData(map[string]any{
|
ctx.JSON(w, 200, result.OkData(map[string]any{
|
||||||
"accessToken": token,
|
"accessToken": token,
|
||||||
}))
|
}))
|
||||||
|
|||||||
Reference in New Issue
Block a user