获奖记录修改

This commit is contained in:
by 2024-07-31 10:09:49 +08:00
parent 1136da298c
commit 4d2a136eca
3 changed files with 3 additions and 14 deletions

View File

@ -329,8 +329,6 @@ func (this *BagMgr) AddItems(p *Player, addItems []*Item, add int64, gainWay int
}
//获奖记录log
if logType == ItemObtain && v.ItemNum > 0 {
AwardLogMgr.UpdateAwardLog(p.Platform, item.Id, v.ItemNum)
awardLogType := 0
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 {
//实物
awardLogType = 2
AwardLogMgr.UpdateAwardLog(p.Platform, item.Id, v.ItemNum)
}
if awardLogType != 0 {
data := model.AnnouncerLog{
@ -501,8 +500,6 @@ func (this *BagMgr) AddItemsOffline(platform string, snid int32, addItems []*Ite
//获奖记录log
if logType == ItemObtain && v.ItemNum > 0 {
AwardLogMgr.UpdateAwardLog(findPlayer.Platform, itemData.Id, v.ItemNum)
awardLogType := 0
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 {
//实物
awardLogType = 2
AwardLogMgr.UpdateAwardLog(findPlayer.Platform, itemData.Id, v.ItemNum)
}
if awardLogType > 0 {
logData := model.AnnouncerLog{

View File

@ -912,16 +912,6 @@ func (this *ShopMgr) Exchange(p *Player, goodsId int32, username, mobile, commen
pack.RetCode = shop.OpResultCode_OPRC_Sucess
//兑换话费成功记录一下
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)
//已兑换记录
AwardLogMgr.UpdateAwardLog(p.Platform, item.Id, int64(1))

View File

@ -1290,6 +1290,7 @@ func (this *Tournament) sendPromotionInfo(mc *PlayerMatchContext, sortId int64,
TypeId: int32(1),
}
AwardLogMgr.UpdateAnnouncerLog(awardLog)
AwardLogMgr.UpdateAwardLog(p.Platform, item.ItemId, 1)
}
}), fmt.Sprintf("RankAward%d", mc.p.SnId)).Start()
}