log修改
This commit is contained in:
parent
0da4aa2f09
commit
cfa469a02e
|
|
@ -684,16 +684,14 @@ func (this *ShopMgr) GetAmountFinal(p *Player, shopId, vipShopId int32) int64 {
|
||||||
|
|
||||||
// 商城购买 额外增加道具
|
// 商城购买 额外增加道具
|
||||||
func (this *ShopMgr) ShopAddItem(shopInfo *model.ShopInfo, p *Player) {
|
func (this *ShopMgr) ShopAddItem(shopInfo *model.ShopInfo, p *Player) {
|
||||||
if shopInfo.AddItemInfo != nil {
|
for _, info := range shopInfo.AddItemInfo {
|
||||||
for _, info := range shopInfo.AddItemInfo {
|
item := &Item{ItemId: info.ItemId, ItemNum: info.ItemNum, ObtainTime: time.Now().Unix()}
|
||||||
item := &Item{ItemId: info.ItemId, ItemNum: info.ItemNum, ObtainTime: time.Now().Unix()}
|
BagMgrSingleton.AddJybBagInfo(p, []*Item{item}, 0, common.GainWay_Shop_Buy, "system", shopInfo.Name)
|
||||||
BagMgrSingleton.AddJybBagInfo(p, []*Item{item}, 0, common.GainWay_Shop_Buy, "system", shopInfo.Name)
|
data := srvdata.PBDB_GameItemMgr.GetData(item.ItemId)
|
||||||
data := srvdata.PBDB_GameItemMgr.GetData(item.ItemId)
|
if data != nil {
|
||||||
if data != nil {
|
BagMgrSingleton.RecordItemLog(p.Platform, p.SnId, ItemObtain, info.ItemId, data.Name, info.ItemNum, "商城购买")
|
||||||
BagMgrSingleton.RecordItemLog(p.Platform, p.SnId, ItemObtain, shopInfo.ItemId, data.Name, shopInfo.Amount, "商城购买")
|
|
||||||
}
|
|
||||||
PetMgrSington.CheckShowRed(p)
|
|
||||||
}
|
}
|
||||||
|
PetMgrSington.CheckShowRed(p)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue