fix: 旧登录session_token记录

This commit is contained in:
TsMask
2023-10-17 15:06:58 +08:00
parent c5e6ba13af
commit 286ba4b781

View File

@@ -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,
}))