diff --git a/worldsrv/action_shop.go b/worldsrv/action_shop.go index d36a4b7..3e732bf 100644 --- a/worldsrv/action_shop.go +++ b/worldsrv/action_shop.go @@ -278,23 +278,23 @@ func (this *CSShopExchangeHandler) Process(s *netlib.Session, packetid int, data return nil } - switch msg.ExchangeType { - case 1: // 自提 - //自提 直接增加道具到背包 - cdata := ShopMgrSington.GetExchangeData(p.Platform, msg.GoodsId) - if cdata == nil || cdata.ItemId == 0 { - return nil - } - //获取道具Id - var items []*Item - items = append(items, &Item{ - ItemId: cdata.ItemId, // 物品id - ItemNum: 1, // 数量 - ObtainTime: time.Now().Unix(), - }) - BagMgrSingleton.AddItems(p, items, 0, common.GainWay_Exchange, "system", "商城兑换", 0, 0, false) - default: - } + /* switch msg.ExchangeType { + case 1: // 自提 + //自提 直接增加道具到背包 + cdata := ShopMgrSington.GetExchangeData(p.Platform, msg.GoodsId) + if cdata == nil || cdata.ItemId == 0 { + return nil + } + //获取道具Id + var items []*Item + items = append(items, &Item{ + ItemId: cdata.ItemId, // 物品id + ItemNum: 1, // 数量 + ObtainTime: time.Now().Unix(), + }) + BagMgrSingleton.AddItems(p, items, 0, common.GainWay_Exchange, "system", "商城兑换", 0, 0, false) + default: + }*/ _, f := BlackListMgrSington.CheckExchange(p.PlayerData) if !f {