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
@@ -4,7 +4,7 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"honoka-chan/database"
"honoka-chan/db"
"honoka-chan/encrypt"
"honoka-chan/utils"
"time"
@@ -37,7 +37,7 @@ func AuthKey(ctx *gin.Context) {
"server_token": serverToken,
})
CheckErr(err)
err = database.LevelDb.Put([]byte(authorizeToken), authJson)
err = db.DB.Set([]byte(authorizeToken), authJson)
CheckErr(err)
nonce := ctx.GetInt("nonce")