兑换商城判断是否显示判断
This commit is contained in:
parent
29a8319849
commit
152ad64263
|
|
@ -815,7 +815,15 @@ func (this *ShopMgr) Exchange(p *Player, goodsId int32, username, mobile, commen
|
||||||
break
|
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) {
|
if info == nil || (info.Price == 0 && info.JPrice == 0 && info.Cash == 0) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue