Commit 66347c669067aca4c62e3451df9f0ef44afe7d23

Authored by liuzujun
2 parents c99f08df f49ec714

Merge branch 'develop' of 120.26.43.151:wasteland/server into develop

src/actions/HeroAction.lua
... ... @@ -109,6 +109,7 @@ function _M.wakeRpc(agent, data)
109 109 role:costItems(cost, {log = {desc = "heroWake", int1 = msg.id, int2 = hero:getProperty("type")}})
110 110  
111 111 local oldAttr = hero:getTotalAttrs()
  112 + local oldBattleV = hero:getProperty("battleV")
112 113 hero:updateProperty({field = "wakeL", delta = 1})
113 114  
114 115 local curLevel = hero:getProperty("wakeL")
... ... @@ -122,6 +123,7 @@ function _M.wakeRpc(agent, data)
122 123 hero_id = typ, --英雄ID
123 124 hero_rise_cost = cost, --英雄觉醒消耗,json格式记录,{道具ID1:消耗数量1,道具ID2:消耗数量2,………...}
124 125 hero_rise_score = hero:getProperty("battleV"), --英雄觉醒后评分提升
  126 + hero_rise_scoreget = hero:getProperty("battleV") - oldBattleV, --英雄觉醒后评分提升
125 127 hero_rise_result = getChangeAttrJson(oldAttr, hero:getTotalAttrs()), --英雄觉醒效果,可记录效果ID,或json格式记录提升效果,{攻击:20,闪避:20,……..}
126 128 })
127 129  
... ... @@ -198,6 +200,7 @@ function _M.talentRpc(agent, data)
198 200  
199 201 role:log("hero_talent", {
200 202 hero_id = hero:getProperty("type"), --英雄ID
  203 + hero_talent_id = index, --天赋ID
201 204 hero_talent_cost = cost, -- 英雄天赋升级消耗,json格式记录,{道具ID1:消耗数量1,道具ID2:消耗数量2,………...}
202 205 hero_talent_levelbef = oldSkillLv, -- 英雄技能升级前等级
203 206 hero_talent_level = hero:getSkillLevel(1), -- 英雄技能升级后等级
... ... @@ -581,14 +584,16 @@ function _M.referRunesRpc(agent, data)
581 584 local attrChange = getChangeAttrJson(oldAttr, hero:getTotalAttrs())
582 585 for runeId, typ in pairs(wear) do
583 586 local ownRune = role.runeBag[runeId]
584   - role:log("hero_jewel", {
585   - hero_id = hero:getProperty("type"), -- 英雄ID
586   - hero_jewel_id = ownRune:getProperty("id"), -- 铭文ID
587   - hero_jewel_part = typ, -- 铭文装备部位
588   - hero_jewel_score = hero:getProperty("battleV"), -- 铭文装备后的英雄分值
589   - hero_jewel_scorebefore = oldBattleV, -- 铭文装备前的英雄分值
590   - hero_jewel_result = attrChange, -- 铭文装备后效果,可记录效果ID,或json格式记录提升效果,{攻击:20,闪避:20,……..}
591   - })
  587 + if ownRune then
  588 + role:log("hero_jewel", {
  589 + hero_id = hero:getProperty("type"), -- 英雄ID
  590 + hero_jewel_id = ownRune:getProperty("id"), -- 铭文ID
  591 + hero_jewel_part = typ, -- 铭文装备部位
  592 + hero_jewel_score = hero:getProperty("battleV"), -- 铭文装备后的英雄分值
  593 + hero_jewel_scorebefore = oldBattleV, -- 铭文装备前的英雄分值
  594 + hero_jewel_result = attrChange, -- 铭文装备后效果,可记录效果ID,或json格式记录提升效果,{攻击:20,闪避:20,……..}
  595 + })
  596 + end
592 597 end
593 598  
594 599 SendPacket(actionCodes.Hero_referRunesRpc, "")
... ...
src/actions/RoleAction.lua
... ... @@ -549,7 +549,6 @@ function _M.openTimeBoxRpc(agent, data)
549 549 local quick = msg.quick
550 550 if not boxL[slot] then return end
551 551 local costKey = 0
552   - local costTime = skynet.timex() - boxL[slot].time
553 552 if boxL[slot].time > skynet.timex() then -- 没开完
554 553 if not quick then return end
555 554 local cost_pre = globalCsv.box_timeOpen_diamond:toArray(true, "=")
... ... @@ -560,6 +559,7 @@ function _M.openTimeBoxRpc(agent, data)
560 559 local boxId = boxL[slot].id
561 560 local itemData = csvdb["itemCsv"][boxId]
562 561 local randomData = csvdb["item_randomCsv"][itemData.id]
  562 + local costTime = skynet.timex() - (boxL[slot].time - randomData.openTime)
563 563 -- 随机奖励
564 564 reward = {}
565 565 for i = 1, 10 do
... ... @@ -684,7 +684,7 @@ function _M.storyBookRewardRpc(agent, data)
684 684 role:changeUpdates({{ type = "storyB", field = storyId, value = storyStatus[storyId] }})
685 685 local reward, change = role:award(storyBookData.gift, {log = {desc = "storybookReward", int1 = storyId}})
686 686  
687   - role:log("carriage_decals", {
  687 + role:log("carriage_video", {
688 688 carriage_video_type = storyBookData.type, --放映室类型,剧情CG:0, 角色CG:1, 主线剧情:2, 角色剧情:3, 活动剧情:4, 图鉴:5
689 689 carriage_video_id = storyId, --放映室片段ID
690 690 carriage_video_coinid = reward[ItemId.Gold] and ItemId.Gold or 0, --放映奖励货币类型,无奖励则填写0
... ...
src/actions/StoreAction.lua
... ... @@ -177,7 +177,7 @@ function _M.purchaseOrderResult(agent, data)
177 177 item_level = 1, -- 购买的道具等级
178 178 order_cost = dataSet.rmb * 100, -- 此次消费的现金金额(单位:分),如 51800即未518元,对应客户端SDK传入的'total_fee'
179 179 order_currency = "CNY", -- 货币类型,默认为"CNY"(人民币),遵循ISO 4217规范
180   - order_type = self.getProperty("rmbC") > 0 and 0 or 1, -- 订单类型,首充记录为1,否则为0
  180 + order_type = role:getProperty("rmbC") > 0 and 0 or 1, -- 订单类型,首充记录为1,否则为0
181 181 order_id = msg.platformOrder, -- 本条记录的订单号,对应客户端SDK返回的'bs_trade_no'
182 182 })
183 183  
... ...
src/models/RoleLog.lua
... ... @@ -215,6 +215,7 @@ local MethodType = {
215 215 hero_id = true, --英雄ID
216 216 hero_rise_cost = "json", --英雄觉醒消耗,json格式记录,{道具ID1:消耗数量1,道具ID2:消耗数量2,………...}
217 217 hero_rise_score = true, --英雄觉醒后评分提升
  218 + hero_rise_scoreget = true, -- 提升的评分
218 219 hero_rise_result = "json", --英雄觉醒效果,可记录效果ID,或json格式记录提升效果,{攻击:20,闪避:20,……..}
219 220 },
220 221 hero_upgrade = { --英雄升级
... ... @@ -236,6 +237,7 @@ local MethodType = {
236 237 hero_talent_cost = "json", -- 英雄天赋升级消耗,json格式记录,{道具ID1:消耗数量1,道具ID2:消耗数量2,………...}
237 238 hero_talent_levelbef = true, -- 英雄技能升级前等级
238 239 hero_talent_level = true, -- 英雄技能升级后等级
  240 + hero_talent_id = true, -- 天赋id
239 241 },
240 242 hero_jewel = { --英雄铭文
241 243 hero_id = true, -- 英雄ID
... ... @@ -285,7 +287,7 @@ local MethodType = {
285 287 equip_upgrade_amount = true, -- 升级获取的装备数量
286 288 equip_upgrade_usedid = true, -- 升级消耗的装备ID
287 289 equip_upgrade_cost = true, -- 升级操作消耗装备数量
288   - equip_upgrade_current = true, -- 升级操作消耗货币数量
  290 + equip_upgrade_current = "json", -- 升级操作消耗货币数量
289 291 },
290 292 carriage_dismantle = { --物资拆解
291 293 item_id = true, -- 道具id
... ...
src/models/RolePlugin.lua
... ... @@ -229,7 +229,7 @@ function RolePlugin.bind(Role)
229 229 self:log("setLevel", {
230 230 level_before = oldLevel,
231 231 level_changemain = log.desc,
232   - level_changedetail = log.sub or "",
  232 + level_changedetail = log.int1 or 0,
233 233 level_reward = {},
234 234 })
235 235 else
... ...