fix: 旧登录session_token记录
This commit is contained in:
1 parent
c5e6ba13af
commit
286ba4b781
1 file changed
+1
@@ -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