From dd7663b3c9b7172a576e999bb2aae3a7bc5dc268 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Thu, 24 Oct 2024 14:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E6=8A=80=E9=A6=86=E6=8A=BD=E5=A5=96?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/addmail.go | 15 ++++++++------- worldsrv/lotterymgr.go | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/worldsrv/addmail.go b/worldsrv/addmail.go index 66b30f3..eb111df 100644 --- a/worldsrv/addmail.go +++ b/worldsrv/addmail.go @@ -127,7 +127,7 @@ func AddMailClientUpgrade(snid int32, items []*webapi.ItemInfo) { }) } -func AddMailLottery(snid int32, items []*model.ItemInfo) { +func AddMailLottery(plt string, snid int32, items []*model.ItemInfo) { var arr []*model.Item for _, v := range items { arr = append(arr, &model.Item{ @@ -140,11 +140,12 @@ func AddMailLottery(snid int32, items []*model.ItemInfo) { content := i18n.Tr("languages", "Lottery") AddMail(&AddMailParam{ - Tp: model.MSGTYPE_Lottery, - SnId: snid, - Title: title, - Content: content, - Items: arr, - ShowId: model.HallAll, + Platform: plt, + Tp: model.MSGTYPE_Lottery, + SnId: snid, + Title: title, + Content: content, + Items: arr, + ShowId: model.HallAll, }) } diff --git a/worldsrv/lotterymgr.go b/worldsrv/lotterymgr.go index fb5da86..892a592 100644 --- a/worldsrv/lotterymgr.go +++ b/worldsrv/lotterymgr.go @@ -139,7 +139,7 @@ func (l *LotteryData) sendAward() { if l.IsRobot { return } - AddMailLottery(l.SnId, l.Reward) + AddMailLottery(l.Platform, l.SnId, l.Reward) // 通知 if p := PlayerMgrSington.GetPlayerBySnId(l.SnId); p != nil {