From 7b96919d80ed590c6ba77d30ea372b98363c40de Mon Sep 17 00:00:00 2001 From: liaoyulong Date: Thu, 4 Dec 2025 12:23:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=90=8E=E4=B8=80=E6=AC=A1=E7=9A=84co?= =?UTF-8?q?unt=E6=94=BE=E5=88=B0=E8=AE=A1=E6=95=B0=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/gameAct/gameAct.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/logic/gameAct/gameAct.go b/internal/logic/gameAct/gameAct.go index 6faef75..e08cf68 100644 --- a/internal/logic/gameAct/gameAct.go +++ b/internal/logic/gameAct/gameAct.go @@ -605,6 +605,8 @@ func (s *sGameAct) Cache2SqlChan(ctx context.Context, addChan, updateChan chan * } err = tx.Commit() + addAllCount += addCount + updateAllCount += updateCount // 仅在所有通道处理完毕后打印最终计数(移除中间冗余日志) g.Log().Debugf(ctx, "运行结束act当前写入数据库: %v 条", addAllCount) g.Log().Debugf(ctx, "运行结束act当前更新数据库: %v 条", updateAllCount)