add 红包雨任务

This commit is contained in:
sk 2025-01-13 09:18:48 +08:00
parent 894c28fa0e
commit 4e55ce186d
1 changed files with 2 additions and 0 deletions

View File

@ -2485,6 +2485,8 @@ func (this *WelfareMgr) GetRedPacket(p *Player, id int64) *welfare.SCRedPacketDr
ItemNum: reward, ItemNum: reward,
}, mq.DBRedPacket) }, mq.DBRedPacket)
TaskSubjectSingleton.Touch(common.TaskTypeBuyRedBag, &TaskData{SnId: p.SnId, Num: 1})
_, pack.RemainCount = RedPacketMgrInst.GetRemainTimesByConfig(p, cfg) _, pack.RemainCount = RedPacketMgrInst.GetRemainTimesByConfig(p, cfg)
Send(welfare.OpResultCode_OPRC_Sucess) Send(welfare.OpResultCode_OPRC_Sucess)
return pack return pack