diff --git a/worldsrv/shopmgr.go b/worldsrv/shopmgr.go index e0aaeaf..b881c42 100644 --- a/worldsrv/shopmgr.go +++ b/worldsrv/shopmgr.go @@ -815,7 +815,15 @@ func (this *ShopMgr) Exchange(p *Player, goodsId int32, username, mobile, commen break } } - + for _, weight := range this.GetConfig(p.Platform).ExchangeShopList.Weight { + if weight.ShopType == cdata.ShopType { + if weight.IsShow == 2 { + pack.RetCode = shop.OpResultCode_OPRC_Error + p.SendToClient(int(shop.SPacketID_PACKET_SC_SHOP_EXCHANGE), pack) + return false + } + } + } if info == nil || (info.Price == 0 && info.JPrice == 0 && info.Cash == 0) { return false }