Commit cbc6973f91d74d4fb136455821e0513e8b35cae6
1 parent
04258e10
天赋bug 日志调整
Showing
3 changed files
with
9 additions
and
8 deletions
Show diff stats
src/actions/HeroAction.lua
@@ -105,6 +105,7 @@ function _M.talentRpc(agent, data) | @@ -105,6 +105,7 @@ function _M.talentRpc(agent, data) | ||
105 | if not curData then return 4 end | 105 | if not curData then return 4 end |
106 | 106 | ||
107 | if index == 0 then | 107 | if index == 0 then |
108 | + if not csvdb["unit_talentCsv"][curStage + 1] then return 11 end | ||
108 | --是否进阶 | 109 | --是否进阶 |
109 | local max = true | 110 | local max = true |
110 | for i = 1, 4 do | 111 | for i = 1, 4 do |
@@ -119,7 +120,7 @@ function _M.talentRpc(agent, data) | @@ -119,7 +120,7 @@ function _M.talentRpc(agent, data) | ||
119 | talent = talent:setv(i, 0) | 120 | talent = talent:setv(i, 0) |
120 | end | 121 | end |
121 | else | 122 | else |
122 | - return 3 | 123 | + return 12 |
123 | end | 124 | end |
124 | else | 125 | else |
125 | 126 |
src/actions/StoreAction.lua
@@ -28,7 +28,7 @@ function _M.rechargeRpc(agent , data) | @@ -28,7 +28,7 @@ function _M.rechargeRpc(agent , data) | ||
28 | local rmb = dataSet.rmb | 28 | local rmb = dataSet.rmb |
29 | role:updateProperty({field = "rmbC", delta = rmb}) | 29 | role:updateProperty({field = "rmbC", delta = rmb}) |
30 | 30 | ||
31 | - role:log("role_action", {desc = "recharge", int1 = id}) | 31 | + role:log("role_action", {desc = "recharge", int1 = id, int2 = rmb}) |
32 | 32 | ||
33 | SendPacket(actionCodes.Store_rechargeRpc, MsgPack.pack({diamond = diamondCount})) | 33 | SendPacket(actionCodes.Store_rechargeRpc, MsgPack.pack({diamond = diamondCount})) |
34 | return true | 34 | return true |
src/models/RoleLog.lua
@@ -36,7 +36,7 @@ local LogType = { | @@ -36,7 +36,7 @@ local LogType = { | ||
36 | 36 | ||
37 | -- 如要修改 要提前修改 _template mapping -- 对应 mapping 为 gamelog-* | 37 | -- 如要修改 要提前修改 _template mapping -- 对应 mapping 为 gamelog-* |
38 | local Mapping = { | 38 | local Mapping = { |
39 | - -- 预留一些数据格式 | 39 | + -- 预留一些数据格式 担心integer 范围不够用 将 通用的int* 全部换为long |
40 | common = { | 40 | common = { |
41 | desc = "keyword",--索引的短字符串 | 41 | desc = "keyword",--索引的短字符串 |
42 | ucode = "keyword",--关联日志对应ucode | 42 | ucode = "keyword",--关联日志对应ucode |
@@ -46,15 +46,15 @@ local Mapping = { | @@ -46,15 +46,15 @@ local Mapping = { | ||
46 | text1 = "text", --长字符串不索引的类型 | 46 | text1 = "text", --长字符串不索引的类型 |
47 | -- 五个不同类型的数字 基本上满足数量要求 尽量从低到高用 | 47 | -- 五个不同类型的数字 基本上满足数量要求 尽量从低到高用 |
48 | short1 = "short", | 48 | short1 = "short", |
49 | - int1 = "integer", | ||
50 | - int2 = "integer", | 49 | + int1 = "long", |
50 | + int2 = "long", | ||
51 | long1 = "long", | 51 | long1 = "long", |
52 | float1 = "float", | 52 | float1 = "float", |
53 | 53 | ||
54 | -- 底层使用的 一些参数 | 54 | -- 底层使用的 一些参数 |
55 | - cint1 = "integer", | ||
56 | - cint2 = "integer", | ||
57 | - cint3 = "integer", | 55 | + cint1 = "long", |
56 | + cint2 = "long", | ||
57 | + cint3 = "long", | ||
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 |