fix 修复清理缓存报错,升级版本号

This commit is contained in:
yxh 2023-03-06 16:28:16 +08:00
parent 59eaed49fb
commit c47ec9da9a
2 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,6 @@ package controller
import (
"context"
"github.com/gogf/gf/v2/container/gvar"
"github.com/gogf/gf/v2/encoding/gbase64"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/util/gconv"
"github.com/tiger1103/gfast/v3/api/v1/system"
@ -46,8 +45,7 @@ func(c *cacheController)Remove(ctx context.Context,req *system.CacheRemoveReq)(r
return
}
for _, d := range dataSlice {
dk := gbase64.MustDecodeToString(d)
_, err = g.Redis().Do(ctx,"del", dk)
_, err = g.Redis().Do(ctx,"del", d)
if err != nil {
return
}

View File

@ -8,5 +8,5 @@
package consts
const (
Version = "3.2.2"
Version = "3.2.3"
)