Commit 9a6538afbefd754acfcd53c17b1d60695b5fc922
1 parent
7d99c172
fix: costDiamond 价格为零的商品可以购买, 价格是读配表的。
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/models/RolePlugin.lua
@@ -550,7 +550,7 @@ function RolePlugin.bind(Role) | @@ -550,7 +550,7 @@ function RolePlugin.bind(Role) | ||
550 | if isnan(count) then | 550 | if isnan(count) then |
551 | return false | 551 | return false |
552 | end | 552 | end |
553 | - if count <= 0 then | 553 | + if count < 0 then |
554 | return false | 554 | return false |
555 | end | 555 | end |
556 | local isIos = self:getProperty("sid") == IOS_SID | 556 | local isIos = self:getProperty("sid") == IOS_SID |