Commit cbc6973f91d74d4fb136455821e0513e8b35cae6

Authored by zhouhaihai
1 parent 04258e10

天赋bug 日志调整

src/actions/HeroAction.lua
... ... @@ -105,6 +105,7 @@ function _M.talentRpc(agent, data)
105 105 if not curData then return 4 end
106 106  
107 107 if index == 0 then
  108 + if not csvdb["unit_talentCsv"][curStage + 1] then return 11 end
108 109 --是否进阶
109 110 local max = true
110 111 for i = 1, 4 do
... ... @@ -119,7 +120,7 @@ function _M.talentRpc(agent, data)
119 120 talent = talent:setv(i, 0)
120 121 end
121 122 else
122   - return 3
  123 + return 12
123 124 end
124 125 else
125 126  
... ...
src/actions/StoreAction.lua
... ... @@ -28,7 +28,7 @@ function _M.rechargeRpc(agent , data)
28 28 local rmb = dataSet.rmb
29 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 33 SendPacket(actionCodes.Store_rechargeRpc, MsgPack.pack({diamond = diamondCount}))
34 34 return true
... ...
src/models/RoleLog.lua
... ... @@ -36,7 +36,7 @@ local LogType = {
36 36  
37 37 -- 如要修改 要提前修改 _template mapping -- 对应 mapping 为 gamelog-*
38 38 local Mapping = {
39   - -- 预留一些数据格式
  39 + -- 预留一些数据格式 担心integer 范围不够用 将 通用的int* 全部换为long
40 40 common = {
41 41 desc = "keyword",--索引的短字符串
42 42 ucode = "keyword",--关联日志对应ucode
... ... @@ -46,15 +46,15 @@ local Mapping = {
46 46 text1 = "text", --长字符串不索引的类型
47 47 -- 五个不同类型的数字 基本上满足数量要求 尽量从低到高用
48 48 short1 = "short",
49   - int1 = "integer",
50   - int2 = "integer",
  49 + int1 = "long",
  50 + int2 = "long",
51 51 long1 = "long",
52 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  
... ...