钻石消耗记录
This commit is contained in:
parent
af7572f923
commit
a2584b22bc
|
|
@ -648,14 +648,16 @@ func (this *ShopMgr) GainShop(shopInfo *model.ShopInfo, p *Player, vipShopId, po
|
||||||
logger.Logger.Tracef("GainShop ConstType[%v],shopName[%v],costNum[%v]", shopInfo.ConstType, shopName, costNum)
|
logger.Logger.Tracef("GainShop ConstType[%v],shopName[%v],costNum[%v]", shopInfo.ConstType, shopName, costNum)
|
||||||
|
|
||||||
var gainWay int32 = common.GainWay_Shop_Buy
|
var gainWay int32 = common.GainWay_Shop_Buy
|
||||||
switch {
|
switch shopInfo.Page {
|
||||||
case shopInfo.Type == ShopTypeCoin:
|
case ShopPageCoin:
|
||||||
gainWay = common.GainWayBuyCoin
|
gainWay = common.GainWayBuyCoin
|
||||||
case shopInfo.Id == common.ShopIdWeekCard:
|
case ShopPageGift:
|
||||||
gainWay = common.GainWayBuyWeekCard
|
if shopInfo.Id == common.ShopIdWeekCard {
|
||||||
case shopInfo.Type == ShopTypeItem:
|
gainWay = common.GainWayBuyWeekCard
|
||||||
|
}
|
||||||
|
case ShopPageItem:
|
||||||
gainWay = common.GainWayBuyItem
|
gainWay = common.GainWayBuyItem
|
||||||
case shopInfo.Page == ShopPageVip:
|
case ShopPageVip:
|
||||||
gainWay = common.GainWayVipBuyCoin
|
gainWay = common.GainWayVipBuyCoin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue