From e8f94c911cf304613237986e91f690665ab5fb11 Mon Sep 17 00:00:00 2001 From: ayflying Date: Thu, 27 Mar 2025 11:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E7=A8=BF=E7=BA=A2=E7=82=B9=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E7=BC=93=E5=AD=98=E6=B8=85=E7=90=86=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/gameAct/gameAct.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/logic/gameAct/gameAct.go b/internal/logic/gameAct/gameAct.go index 386fdb5..5b85c84 100644 --- a/internal/logic/gameAct/gameAct.go +++ b/internal/logic/gameAct/gameAct.go @@ -4,7 +4,6 @@ import ( "fmt" "github.com/ayflying/utility_go/internal/model/do" "github.com/ayflying/utility_go/internal/model/entity" - "github.com/ayflying/utility_go/pgk" "github.com/ayflying/utility_go/pkg" service2 "github.com/ayflying/utility_go/service" "github.com/ayflying/utility_go/tools" @@ -216,7 +215,7 @@ func (s *sGameAct) Save(actId int) (err error) { // 清空GetRedDot缓存 func (s *sGameAct) RefreshGetRedDotCache(uid int64) { cacheKey := fmt.Sprintf("gameAct:GetRedDot:%s:%d", gtime.Now().Format("d"), uid) - _, err := pgk.Cache("redis").Remove(gctx.New(), cacheKey) + _, err := pkg.Cache("redis").Remove(gctx.New(), cacheKey) if err != nil { g.Log().Error(ctx, err) g.Dump(err) @@ -232,7 +231,7 @@ func (s *sGameAct) Del(uid int64, actId int) { keyCache := fmt.Sprintf("act:%v:%v", actId, uid) //删除活动缓存 - g.Redis().Del(ctx, keyCache) + g.Redis("redis").Del(ctx, keyCache) //删除当前活动储存 g.Model(Name).Where(do.GameAct{