增加背包兑换话费码操作返回结果

This commit is contained in:
by 2024-06-28 10:53:55 +08:00
parent 2b75df2e38
commit 7146df070c
2 changed files with 3 additions and 3 deletions

2
public

@ -1 +1 @@
Subproject commit e3cbc9f58234727bd5f859f86083ad584b66009b
Subproject commit aef8c489a27508831d69b4f66dee10c5258abb92

View File

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