diff --git a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/SheJiDaDian.lua b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/SheJiDaDian.lua index ff51694852..4d63c2de46 100644 --- a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/SheJiDaDian.lua +++ b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/SheJiDaDian.lua @@ -219,7 +219,9 @@ function this.OnPointerUp(Pointgo,data)--抬起 this:RefreshBottom(numCount) this:RequestDonate(numCount) else - this:RequestDonate(numCount-t) + if itemData[curItemIndex].leftNum > 0 then + this:RequestDonate(numCount-t) + end end isPressed = false isShortPress = false @@ -239,6 +241,10 @@ function this.OnUpdate() end --发送捐献请求 function this:RequestDonate(numCount) + if numCount == 0 then + PopupTipPanel.ShowTip(Language[11197]) + return + end if trigger and numCount == 1 then trigger = false this:Refresh() @@ -285,10 +291,10 @@ function this:RefreshBottom(num) else--实时更新进度条 --要判断是否还有道具进行捐献 if itemData[curItemIndex].leftNum - num < 0 then - PopupTipPanel.ShowTip(Language[11197]) + this:RequestDonate(num - 1) trigger = true isPressed = false - return + -- return end itemData[curItemIndex].num.text = itemData[curItemIndex].leftNum - num score = itemData[curItemIndex].value * num