From d82b12ddaf952c8522beba22bebb2a1f5535d959 Mon Sep 17 00:00:00 2001 From: liaoyulong Date: Wed, 19 Nov 2025 14:56:12 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E8=A7=A3=E5=86=B3=E5=90=8E=E7=BB=ADd?= =?UTF-8?q?ata=E8=A7=A3=E6=9E=90=E5=88=B0=E7=A9=BAmap=E4=B8=BAnil=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit f3e1ad74b51d2a71c6819017aced993559427f69. --- 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 5056ec7..2209b6a 100644 --- a/internal/logic/gameAct/gameAct.go +++ b/internal/logic/gameAct/gameAct.go @@ -15,7 +15,6 @@ import ( service2 "github.com/ayflying/utility_go/service" "github.com/ayflying/utility_go/tools" "github.com/gogf/gf/v2/container/gset" - "github.com/gogf/gf/v2/container/gvar" "github.com/gogf/gf/v2/errors/gerror" "github.com/gogf/gf/v2/frame/g" "github.com/gogf/gf/v2/os/gctx" @@ -69,8 +68,8 @@ func (s *sGameAct) Info(uid int64, actId int) (data *g.Var, err error) { Uid: uid, ActId: actId, }).Fields("action").OrderDesc("updated_at").Value() - // getDb.Scan(&data) - data = gvar.New(getDb) + getDb.Scan(&data) + if data == nil || data.IsEmpty() { return }