From 0628882533186ee460468a76a55504d546866b58 Mon Sep 17 00:00:00 2001 From: ayflying Date: Wed, 20 Aug 2025 15:13:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98key=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E4=B8=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/gameAct/gameAct.go | 1 - internal/logic/gameKv/gameKv.go | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) 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) } }