Update leveldb

Signed-off-by: Yuan Si <do4suki@gmail.com>
This commit is contained in:
2025-03-10 15:29:29 +08:00
committed by YumeMichi
parent 70398da4b9
commit 9dcfc90226
11 changed files with 113 additions and 104 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ package handler
import (
"encoding/json"
"honoka-chan/database"
"honoka-chan/db"
"honoka-chan/model"
"net/http"
"strconv"
@@ -38,7 +38,7 @@ func Login(ctx *gin.Context) {
}
ctx.Set("userid", userId)
err = database.LevelDb.Put([]byte(strconv.Itoa(userId)), []byte(ctx.GetString("authorize_token")))
err = db.DB.Set([]byte(strconv.Itoa(userId)), []byte(ctx.GetString("authorize_token")))
CheckErr(err)
loginResp := model.LoginResp{