Commit fcf03f7599314c95a2332bb6c77a0a172db2ec18

Authored by zhouhaihai
1 parent 3aac1e3a

两个记录bug

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