Commit 227b47ea1fc268282bc631b8ff7e627f442cec6b
1 parent
f8ba82b3
错误的代码
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -362,7 +362,7 @@ function _M.openTimeBoxRpc(agent, data) |
362 | 362 | local costCount = randomData[gemId .. "_gem_num"] |
363 | 363 | if not costCount then return end |
364 | 364 | |
365 | - if not role:checkItemEnough({[gemId]] = costCount}) then return end | |
365 | + if not role:checkItemEnough({[gemId] = costCount}) then return end | |
366 | 366 | role:costItems({[gemId] = costCount}) |
367 | 367 | boxL[slot].gem = gemId |
368 | 368 | elseif oper == 3 then -- 领取 | ... | ... |