diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 7f42b84..9c4d112 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -558,7 +558,7 @@ function _M.openTimeBoxRpc(agent, data) if boxL[slot].time > skynet.timex() then -- 没开完 if not quick then return end local cost_pre = globalCsv.box_timeOpen_diamond:toArray(true, "=") - local costKey = math.ceil((boxL[slot].time - skynet.timex()) / (cost_pre[1] * 60)) * cost_pre[2] + costKey = math.ceil((boxL[slot].time - skynet.timex()) / (cost_pre[1] * 60)) * cost_pre[2] if not role:checkItemEnough({[ItemId.BoxKey] = costKey}) then return end role:costItems({[ItemId.BoxKey] = costKey}, {log = {desc = "openTimeBox"}}) end @@ -693,8 +693,8 @@ function _M.storyBookRewardRpc(agent, data) role:log("carriage_video", { carriage_video_type = storyBookData.type, --放映室类型,剧情CG:0, 角色CG:1, 主线剧情:2, 角色剧情:3, 活动剧情:4, 图鉴:5 carriage_video_id = storyId, --放映室片段ID - carriage_video_coinid = reward[ItemId.Gold] and ItemId.Gold or 0, --放映奖励货币类型,无奖励则填写0 - carriage_video_coinnum = reward[ItemId.Gold] or 0, --放映奖励货币数量,无奖励则填写0 + carriage_video_coinid = reward[ItemId.Diamond] and ItemId.Diamond or 0, --放映奖励货币类型,无奖励则填写0 + carriage_video_coinnum = reward[ItemId.Diamond] or 0, --放映奖励货币数量,无奖励则填写0 carriage_video_item = reward, --放映奖励其他物品数量,json格式记录,{'itemid1':10,'itemid2':5,…………..},无奖励则填写0 }) -- libgit2 0.21.2