From 227b47ea1fc268282bc631b8ff7e627f442cec6b Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Thu, 8 Aug 2019 20:44:00 +0800 Subject: [PATCH] 错误的代码 --- src/actions/RoleAction.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index b17ac1e..4dcd0cd 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -362,7 +362,7 @@ function _M.openTimeBoxRpc(agent, data) local costCount = randomData[gemId .. "_gem_num"] if not costCount then return end - if not role:checkItemEnough({[gemId]] = costCount}) then return end + if not role:checkItemEnough({[gemId] = costCount}) then return end role:costItems({[gemId] = costCount}) boxL[slot].gem = gemId elseif oper == 3 then -- 领取 -- libgit2 0.21.2