【道具自选箱】选择的数量为0直接关闭调整

ZhangBiao 2020-12-09 18:02:15 +08:00
parent 0937827967
commit f9f31f5a44
1 changed files with 4 additions and 0 deletions

View File

@ -208,6 +208,10 @@ end
function RewardBoxPanel:OnBtnSureClick()
if curId then
local data = {itemData.id,curId,curNum}
if curNum <= 0 then
PopupTipPanel.ShowTip(Language[10201])
return
end
NetManager.UseAndPriceItemRequest(6,data,function (drop)
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function()
-- self:RefreshData()--执行这个Unity会崩溃