feat: 合并代码

This commit is contained in:
TsMask committed 2023-10-17 19:43:49 +08:00
1 parent 5f5a2e2e9e
commit e2d17640ef
10 files changed
+100 -41

No files matched your search

+1
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,
}))