From f3eb34b18f975a426e4a32dd7d5f14ee0be09cc0 Mon Sep 17 00:00:00 2001 From: liuzujun <307836273@qq.com> Date: Mon, 24 Aug 2020 20:19:33 +0800 Subject: [PATCH] 删除无用日志 --- src/actions/HeroAction.lua | 4 ++-- src/adv/AdvTask.lua | 1 - src/csvdata | 2 +- src/models/RoleLog.lua | 1 + src/models/RolePlugin.lua | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index de11814..de5bb8e 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -916,7 +916,7 @@ function _M.unlockPoolRpc(agent, data) end if needCost then - if not role:costDiamond({count = globalCsv.draw_unlock_pool_diamond or 300, log = {desc = "unlockPool", short1 = type}}) then + if not role:costDiamond({count = globalCsv.draw_unlock_pool_diamond or 300, log = {desc = "unlockPool", int1 = type}}) then return end end @@ -925,7 +925,7 @@ function _M.unlockPoolRpc(agent, data) role.dailyData:updateProperty({field="unlockPool", value = unlockPool}) role.dailyData:updateProperty({field="curPool", value = type}) - role:log("hero_action", {desc = "unlockPool", short1=type}) + --role:log("hero_action", {desc = "unlockPool", int1=type}) SendPacket(actionCodes.Hero_unlockPoolRpc, MsgPack.pack({})) return true end diff --git a/src/adv/AdvTask.lua b/src/adv/AdvTask.lua index 02cc6ed..5099265 100644 --- a/src/adv/AdvTask.lua +++ b/src/adv/AdvTask.lua @@ -365,7 +365,6 @@ function AdvTask.bind(Adv) else if (status or -1) >= data.value1 then status = -1 - self.owner:log("adv_action", {desc = "finishAchiev", short1 = 1, int1 = self.chapterId, int2 = taskId}) end if status and status ~= oldStatus then insertChange(self, self.chapterId, taskId, status) diff --git a/src/csvdata b/src/csvdata index 677f005..ec72516 160000 --- a/src/csvdata +++ b/src/csvdata @@ -1 +1 @@ -Subproject commit 677f005ec716d0367b8823833a47f2aba29fe08e +Subproject commit ec72516d421103deb40278fc734cb0a5cea64689 diff --git a/src/models/RoleLog.lua b/src/models/RoleLog.lua index 242a919..b3e1ced 100644 --- a/src/models/RoleLog.lua +++ b/src/models/RoleLog.lua @@ -96,6 +96,7 @@ local ItemReason = { createHero = 1205, -- 碎片合成 createHeroRandom = 1206, -- 随机合成 resetHero = 1207, -- 重置养成 + unlockPool = 1208, -- 解锁英雄定向抽卡池 } diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 42a7255..53e4dc4 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -230,7 +230,7 @@ function RolePlugin.bind(Role) level_before = oldLevel, level_changemain = log.desc, level_changedetail = log.sub, - level_reward = "{}", + level_reward = {}, }) else print("addPlayExp no log ", debug.traceback()) -- libgit2 0.21.2