From 478ab9ea0a8388567c6dc50f2c555eb1761f9b80 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Wed, 15 May 2024 18:04:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=91=E6=8D=A2=E8=87=AA=E6=8F=90=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=81=93=E5=85=B7=E8=B5=B0=E5=90=8E=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_shop.go | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) 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 {