Commit cd789e7c093f6dc37ecb415dc42b1bd818b51775
1 parent
53ce7853
不要聊天记录缓存
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -264,7 +264,8 @@ function _M.loginRpc( agent, data ) |
264 | 264 | |
265 | 265 | -- 发下缓存的世界消息 |
266 | 266 | local worldChatResponse = {worldChats = {}} |
267 | - local ok, msgs = pcall(skynet.call, '.globald', "lua", "getWorldMsg", role._channelIdx) | |
267 | + -- local ok, msgs = pcall(skynet.call, '.globald', "lua", "getWorldMsg", role._channelIdx) | |
268 | + local ok, msgs = true, {} | |
268 | 269 | if not ok then |
269 | 270 | msgs = {} |
270 | 271 | end |
... | ... | @@ -945,7 +946,7 @@ function _M.chatRpc(agent, data) |
945 | 946 | end |
946 | 947 | end |
947 | 948 | mcast_util.pub_world(actionCodes.Role_chat, MsgPack.pack(response)) |
948 | - pcall(skynet.send, '.globald', "lua", "sendWorldMsg", role._channelIdx, response) | |
949 | + -- pcall(skynet.send, '.globald', "lua", "sendWorldMsg", role._channelIdx, response) | |
949 | 950 | role:mylog("role_action", {desc = "chatWorld", text1 = content}) |
950 | 951 | end, |
951 | 952 | -- 私聊 | ... | ... |