竞技馆抽奖活动
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
|
var arr []*model.Item
|
||||||
for _, v := range items {
|
for _, v := range items {
|
||||||
arr = append(arr, &model.Item{
|
arr = append(arr, &model.Item{
|
||||||
|
@ -140,11 +140,12 @@ func AddMailLottery(snid int32, items []*model.ItemInfo) {
|
||||||
content := i18n.Tr("languages", "Lottery")
|
content := i18n.Tr("languages", "Lottery")
|
||||||
|
|
||||||
AddMail(&AddMailParam{
|
AddMail(&AddMailParam{
|
||||||
Tp: model.MSGTYPE_Lottery,
|
Platform: plt,
|
||||||
SnId: snid,
|
Tp: model.MSGTYPE_Lottery,
|
||||||
Title: title,
|
SnId: snid,
|
||||||
Content: content,
|
Title: title,
|
||||||
Items: arr,
|
Content: content,
|
||||||
ShowId: model.HallAll,
|
Items: arr,
|
||||||
|
ShowId: model.HallAll,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -139,7 +139,7 @@ func (l *LotteryData) sendAward() {
|
||||||
if l.IsRobot {
|
if l.IsRobot {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
AddMailLottery(l.SnId, l.Reward)
|
AddMailLottery(l.Platform, l.SnId, l.Reward)
|
||||||
// 通知
|
// 通知
|
||||||
if p := PlayerMgrSington.GetPlayerBySnId(l.SnId); p != nil {
|
if p := PlayerMgrSington.GetPlayerBySnId(l.SnId); p != nil {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue