From 7146df070ce41c6cf85d1163dd7c14ac0c9bf8a6 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Fri, 28 Jun 2024 10:53:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=83=8C=E5=8C=85=E5=85=91?= =?UTF-8?q?=E6=8D=A2=E8=AF=9D=E8=B4=B9=E7=A0=81=E6=93=8D=E4=BD=9C=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public | 2 +- worldsrv/bagmgr.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public b/public index e3cbc9f..aef8c48 160000 --- a/public +++ b/public @@ -1 +1 @@ -Subproject commit e3cbc9f58234727bd5f859f86083ad584b66009b +Subproject commit aef8c489a27508831d69b4f66dee10c5258abb92 diff --git a/worldsrv/bagmgr.go b/worldsrv/bagmgr.go index a8e286a..8f746f8 100644 --- a/worldsrv/bagmgr.go +++ b/worldsrv/bagmgr.go @@ -575,14 +575,14 @@ func (this *BagMgr) ItemExchangeCard(p *Player, itemId int32, money, cardType in this.AddItems(p, items, 0, common.GainWayItemChange, "system", "背包内使用兑换失败", 0, 0, false) logger.Logger.Errorf("获取兑换码失败 snid:%v itemID:%v res:%v err:%v", p.SnId, itemId, res, err) pack.RetCode = bag.OpResultCode_OPRC_Error - p.SendToClient(int(bag.SPacketID_PACKET_ALL_BAG_USE), pack) + p.SendToClient(int(bag.SPacketID_PACKET_SC_ITEM_EXCHANGE_RES), pack) return } p := PlayerMgrSington.GetPlayerBySnId(p.SnId) if p != nil { p.AddMessage(newMsg) } - p.SendToClient(int(bag.SPacketID_PACKET_ALL_BAG_USE), pack) + p.SendToClient(int(bag.SPacketID_PACKET_SC_ITEM_EXCHANGE_RES), pack) }), fmt.Sprintf("ItemExChange%d", p.SnId)).Start() return true }