From 4e55ce186db0ffa12a971f625b35d42bf291c331 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 13 Jan 2025 09:18:48 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E7=BA=A2=E5=8C=85=E9=9B=A8=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/welfmgr.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worldsrv/welfmgr.go b/worldsrv/welfmgr.go index 95cd2fa..3d9432a 100644 --- a/worldsrv/welfmgr.go +++ b/worldsrv/welfmgr.go @@ -2485,6 +2485,8 @@ func (this *WelfareMgr) GetRedPacket(p *Player, id int64) *welfare.SCRedPacketDr ItemNum: reward, }, mq.DBRedPacket) + TaskSubjectSingleton.Touch(common.TaskTypeBuyRedBag, &TaskData{SnId: p.SnId, Num: 1}) + _, pack.RemainCount = RedPacketMgrInst.GetRemainTimesByConfig(p, cfg) Send(welfare.OpResultCode_OPRC_Sucess) return pack