fix 修复清理缓存报错,升级版本号
This commit is contained in:
parent
59eaed49fb
commit
c47ec9da9a
@ -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
|
||||
}
|
||||
|
@ -8,5 +8,5 @@
|
||||
package consts
|
||||
|
||||
const (
|
||||
Version = "3.2.2"
|
||||
Version = "3.2.3"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user