获奖记录修改
This commit is contained in:
parent
1136da298c
commit
4d2a136eca
|
|
@ -329,8 +329,6 @@ func (this *BagMgr) AddItems(p *Player, addItems []*Item, add int64, gainWay int
|
||||||
}
|
}
|
||||||
//获奖记录log
|
//获奖记录log
|
||||||
if logType == ItemObtain && v.ItemNum > 0 {
|
if logType == ItemObtain && v.ItemNum > 0 {
|
||||||
AwardLogMgr.UpdateAwardLog(p.Platform, item.Id, v.ItemNum)
|
|
||||||
|
|
||||||
awardLogType := 0
|
awardLogType := 0
|
||||||
if item.Type == common.ItemTypeChange {
|
if item.Type == common.ItemTypeChange {
|
||||||
//话费
|
//话费
|
||||||
|
|
@ -338,6 +336,7 @@ func (this *BagMgr) AddItems(p *Player, addItems []*Item, add int64, gainWay int
|
||||||
} else if item.Type == common.ItemTypeObjective {
|
} else if item.Type == common.ItemTypeObjective {
|
||||||
//实物
|
//实物
|
||||||
awardLogType = 2
|
awardLogType = 2
|
||||||
|
AwardLogMgr.UpdateAwardLog(p.Platform, item.Id, v.ItemNum)
|
||||||
}
|
}
|
||||||
if awardLogType != 0 {
|
if awardLogType != 0 {
|
||||||
data := model.AnnouncerLog{
|
data := model.AnnouncerLog{
|
||||||
|
|
@ -501,8 +500,6 @@ func (this *BagMgr) AddItemsOffline(platform string, snid int32, addItems []*Ite
|
||||||
|
|
||||||
//获奖记录log
|
//获奖记录log
|
||||||
if logType == ItemObtain && v.ItemNum > 0 {
|
if logType == ItemObtain && v.ItemNum > 0 {
|
||||||
AwardLogMgr.UpdateAwardLog(findPlayer.Platform, itemData.Id, v.ItemNum)
|
|
||||||
|
|
||||||
awardLogType := 0
|
awardLogType := 0
|
||||||
if itemData.Type == common.ItemTypeChange {
|
if itemData.Type == common.ItemTypeChange {
|
||||||
//话费
|
//话费
|
||||||
|
|
@ -510,6 +507,7 @@ func (this *BagMgr) AddItemsOffline(platform string, snid int32, addItems []*Ite
|
||||||
} else if itemData.Type == common.ItemTypeObjective {
|
} else if itemData.Type == common.ItemTypeObjective {
|
||||||
//实物
|
//实物
|
||||||
awardLogType = 2
|
awardLogType = 2
|
||||||
|
AwardLogMgr.UpdateAwardLog(findPlayer.Platform, itemData.Id, v.ItemNum)
|
||||||
}
|
}
|
||||||
if awardLogType > 0 {
|
if awardLogType > 0 {
|
||||||
logData := model.AnnouncerLog{
|
logData := model.AnnouncerLog{
|
||||||
|
|
|
||||||
|
|
@ -912,16 +912,6 @@ func (this *ShopMgr) Exchange(p *Player, goodsId int32, username, mobile, commen
|
||||||
pack.RetCode = shop.OpResultCode_OPRC_Sucess
|
pack.RetCode = shop.OpResultCode_OPRC_Sucess
|
||||||
//兑换话费成功记录一下
|
//兑换话费成功记录一下
|
||||||
if cdata.TelCharge > 0 {
|
if cdata.TelCharge > 0 {
|
||||||
/* itemId := int32(0)
|
|
||||||
if cdata.TelCharge == 1 {
|
|
||||||
itemId = 30008
|
|
||||||
} else if cdata.TelCharge == 2 {
|
|
||||||
itemId = 30009
|
|
||||||
} else if cdata.TelCharge == 5 {
|
|
||||||
itemId = 30010
|
|
||||||
} else if cdata.TelCharge == 10 {
|
|
||||||
itemId = 30011
|
|
||||||
}*/
|
|
||||||
item := srvdata.GameItemMgr.Get(p.Platform, cdata.ItemId)
|
item := srvdata.GameItemMgr.Get(p.Platform, cdata.ItemId)
|
||||||
//已兑换记录
|
//已兑换记录
|
||||||
AwardLogMgr.UpdateAwardLog(p.Platform, item.Id, int64(1))
|
AwardLogMgr.UpdateAwardLog(p.Platform, item.Id, int64(1))
|
||||||
|
|
|
||||||
|
|
@ -1290,6 +1290,7 @@ func (this *Tournament) sendPromotionInfo(mc *PlayerMatchContext, sortId int64,
|
||||||
TypeId: int32(1),
|
TypeId: int32(1),
|
||||||
}
|
}
|
||||||
AwardLogMgr.UpdateAnnouncerLog(awardLog)
|
AwardLogMgr.UpdateAnnouncerLog(awardLog)
|
||||||
|
AwardLogMgr.UpdateAwardLog(p.Platform, item.ItemId, 1)
|
||||||
}
|
}
|
||||||
}), fmt.Sprintf("RankAward%d", mc.p.SnId)).Start()
|
}), fmt.Sprintf("RankAward%d", mc.p.SnId)).Start()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue