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 {