Commit 3f00afcf2555b8b9caab3d0d0a237a8f139de8c3

Authored by zhouhaihai
1 parent 33be3111

增加日志

src/actions/DinerAction.lua
@@ -681,7 +681,7 @@ function _M.getGreenhouseRpc( agent, data ) @@ -681,7 +681,7 @@ function _M.getGreenhouseRpc( agent, data )
681 end 681 end
682 end 682 end
683 role.dinerData:updateProperty({field = "gfood", value = gfood}) 683 role.dinerData:updateProperty({field = "gfood", value = gfood})
684 - local reward = role:award(reward, {log = {desc = "greenHourse"}}) 684 + local reward = role:award(reward, {log = {desc = "greenHourse", int1 = level}})
685 role:checkTaskEnter("FoodMGet") 685 role:checkTaskEnter("FoodMGet")
686 686
687 role:log("diner_action", {desc = "greenHourse"}) 687 role:log("diner_action", {desc = "greenHourse"})
@@ -840,7 +840,7 @@ function Adv:randomMapId(chapterId, level) @@ -840,7 +840,7 @@ function Adv:randomMapId(chapterId, level)
840 return pool[math.randomInt(1, #pool)] 840 return pool[math.randomInt(1, #pool)]
841 end 841 end
842 842
843 - 843 +-- log long1 字段被征用!!!
844 -- 在冒险中获得的物品都发放在冒险背包内 844 -- 在冒险中获得的物品都发放在冒险背包内
845 function Adv:award(gift, params) 845 function Adv:award(gift, params)
846 params = params or {} 846 params = params or {}
@@ -877,11 +877,13 @@ function Adv:award(gift, params) @@ -877,11 +877,13 @@ function Adv:award(gift, params)
877 877
878 if params.log then 878 if params.log then
879 local log = clone(params.log) 879 local log = clone(params.log)
880 - if log["cint1"] or log["cint2"] or log["cint3"] then 880 + if log["cint1"] or log["cint2"] or log["cint3"] or log["long1"] then
881 print("addAdvItem error log have cint1 or cint2 or cint3 ", debug.traceback()) 881 print("addAdvItem error log have cint1 or cint2 or cint3 ", debug.traceback())
882 end 882 end
883 - log["cint1"] = origin 883 + log["cint1"] = itemId
884 log["cint2"] = math.abs(count) 884 log["cint2"] = math.abs(count)
  885 + log["cint3"] = self.chapterId
  886 + log["long1"] = self.level
885 if count >= 0 then 887 if count >= 0 then
886 self.owner:log("in_adv", log) 888 self.owner:log("in_adv", log)
887 else 889 else
src/adv/AdvTask.lua
@@ -352,6 +352,7 @@ function AdvTask.bind(Adv) @@ -352,6 +352,7 @@ function AdvTask.bind(Adv)
352 else 352 else
353 if (status or -1) >= data.value1 then 353 if (status or -1) >= data.value1 then
354 status = -1 354 status = -1
  355 + self.owner:log("adv_action", {desc = "finishAchiev", short1 = 1, int1 = self.chapterId, int2 = taskId})
355 end 356 end
356 if status and status ~= oldStatus then 357 if status and status ~= oldStatus then
357 insertChange(self, self.chapterId, taskId, status) 358 insertChange(self, self.chapterId, taskId, status)