Commit 25d8cbc6ad9de37c9f156336451d5402581d38bc

Authored by zhouhaihai
1 parent bb7998ff

记录聊天信息

Showing 2 changed files with 2 additions and 1 deletions   Show diff stats
src/actions/RoleAction.lua
@@ -937,6 +937,7 @@ function _M.chatRpc(agent, data) @@ -937,6 +937,7 @@ function _M.chatRpc(agent, data)
937 end 937 end
938 mcast_util.pub_world(actionCodes.Role_chat, MsgPack.pack(response)) 938 mcast_util.pub_world(actionCodes.Role_chat, MsgPack.pack(response))
939 pcall(skynet.send, '.globald', "lua", "sendWorldMsg", role._channelIdx, response) 939 pcall(skynet.send, '.globald', "lua", "sendWorldMsg", role._channelIdx, response)
  940 + role:mylog("role_action", {desc = "chatWorld", text1 = content})
940 end, 941 end,
941 -- 私聊 942 -- 私聊
942 [2] = function () 943 [2] = function ()
src/models/RoleLog.lua
@@ -12,7 +12,7 @@ local server_id = (skynet.getenv("serverType") or "localtest") .. "_" .. serverI @@ -12,7 +12,7 @@ local server_id = (skynet.getenv("serverType") or "localtest") .. "_" .. serverI
12 1000 其他行为 12 1000 其他行为
13 --]] 13 --]]
14 local ItemReason = { 14 local ItemReason = {
15 - recharge = 100, 15 + recharge = 100, -- 充值获取
16 advWheelSurf = 101, -- 资助 16 advWheelSurf = 101, -- 资助
17 advRepayWheelSurf = 102, -- 资助回馈 17 advRepayWheelSurf = 102, -- 资助回馈
18 saleEquip = 103, -- 卖装备 18 saleEquip = 103, -- 卖装备