钻石消耗记录

This commit is contained in:
sk 2024-06-15 18:24:39 +08:00
parent af7572f923
commit a2584b22bc
1 changed files with 8 additions and 6 deletions

View File

@ -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
}