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