From 072c83c34c722f398d7e1d8a97e3b45ad449e9a7 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Tue, 2 Jul 2024 09:02:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/welfmgr.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/worldsrv/welfmgr.go b/worldsrv/welfmgr.go index 82f42a7..19f80f5 100644 --- a/worldsrv/welfmgr.go +++ b/worldsrv/welfmgr.go @@ -842,6 +842,11 @@ func (this *WelfareMgr) GetAddUp2Award(p *Player, day int32) { addUpDate2Num := addUpDate2Type[0].Num if typeId == 1 { Num += 1 + //看广告任务 + TaskSubjectSingleton.Touch(common.TaskTypeAdv, &TaskData{ + SnId: p.SnId, + Num: 1, + }) } else { //扣除钻石 if p.Diamond < int64(addUpDate2Num) {