升级修改提交

dev_chengFeng
jiaoyangna 2021-09-01 16:07:33 +08:00
parent 0f3e76e00f
commit 3373e3daf4
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,7 @@ end
function SacredTreePanel:OnUpdate()
if self.isPressed then
if self.numCount > t and self.numCount/t >= 1 then
if self.numCount > t and self.numCount/t >= 0 then
self.isShortPress = false
self:Refresh(false)
self.numCount = 0
@ -119,6 +119,7 @@ function SacredTreePanel:Refresh(isSend)
end
function SacredTreePanel:RequestDonate(num)
LogGreen("num:"..num)
if num <= 0 then
PopupTipPanel.ShowTip(string.format("%s不足!",itemConfig[treeLevelConfig[curTreeLevel].LvupCost[1]].Name))
return