Compare commits

...

2 Commits

1 changed files with 9 additions and 1 deletions

View File

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