钻石消耗记录
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)
|
||||
|
||||
var gainWay int32 = common.GainWay_Shop_Buy
|
||||
switch {
|
||||
case shopInfo.Type == ShopTypeCoin:
|
||||
switch shopInfo.Page {
|
||||
case ShopPageCoin:
|
||||
gainWay = common.GainWayBuyCoin
|
||||
case shopInfo.Id == common.ShopIdWeekCard:
|
||||
gainWay = common.GainWayBuyWeekCard
|
||||
case shopInfo.Type == ShopTypeItem:
|
||||
case ShopPageGift:
|
||||
if shopInfo.Id == common.ShopIdWeekCard {
|
||||
gainWay = common.GainWayBuyWeekCard
|
||||
}
|
||||
case ShopPageItem:
|
||||
gainWay = common.GainWayBuyItem
|
||||
case shopInfo.Page == ShopPageVip:
|
||||
case ShopPageVip:
|
||||
gainWay = common.GainWayVipBuyCoin
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue