竞技馆抽奖活动
This commit is contained in:
parent
20f0ee30bd
commit
dd7663b3c9
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue