竞技馆抽奖活动

This commit is contained in:
sk 2024-10-24 14:16:05 +08:00
parent 20f0ee30bd
commit dd7663b3c9
2 changed files with 9 additions and 8 deletions

View File

@ -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,
})
}

View File

@ -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 {