This commit is contained in:
Liang Ding 2022-10-30 09:38:54 +08:00
parent a97231b493
commit 33fa1700f8
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -168,13 +168,6 @@ func getLocalStorage(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
key := arg["key"].(string)
lsPath := filepath.Join(util.DataDir, "storage/local.json")
if !gulu.File.IsExist(lsPath) {
return
@ -194,8 +187,7 @@ func getLocalStorage(c *gin.Context) {
return
}
value := ls[key]
ret.Data = value
ret.Data = ls
}
func setLocalStorage(c *gin.Context) {