diff --git a/internal/logic/gameAct/gameAct.go b/internal/logic/gameAct/gameAct.go index aa0d863..a163778 100644 --- a/internal/logic/gameAct/gameAct.go +++ b/internal/logic/gameAct/gameAct.go @@ -226,7 +226,6 @@ func (s *sGameAct) Save(ctx context.Context, actId int) (err error) { _, err = g.Redis().Del(ctx, v) if err != nil { g.Log().Error(ctx, err) - return } } delKey = make([]string, 0) diff --git a/internal/logic/gameKv/gameKv.go b/internal/logic/gameKv/gameKv.go index f544df8..b6d8045 100644 --- a/internal/logic/gameKv/gameKv.go +++ b/internal/logic/gameKv/gameKv.go @@ -2,16 +2,17 @@ package gameKv import ( "fmt" + "strconv" + "strings" + "sync" + "time" + "github.com/ayflying/utility_go/pkg" "github.com/ayflying/utility_go/service" "github.com/ayflying/utility_go/tools" "github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/os/gctx" "github.com/gogf/gf/v2/os/gtime" - "strconv" - "strings" - "sync" - "time" ) var ( @@ -107,8 +108,7 @@ func (s *sGameKv) SavesV1() (err error) { for _, v := range delKey { _, err2 = g.Redis().Del(ctx, v) if err2 != nil { - g.Log().Errorf(ctx, "删除存档错误:%v,err=%v", v, err2) - return + g.Log().Errorf(ctx, "删除存档失败:%v,err=%v", v, err2) } }