Compare commits
2 Commits
23c1d1eaab
...
3fc151e340
Author | SHA1 | Date |
---|---|---|
|
3fc151e340 | |
|
152ad64263 |
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue