From cd789e7c093f6dc37ecb415dc42b1bd818b51775 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Wed, 21 Oct 2020 15:37:49 +0800 Subject: [PATCH] 不要聊天记录缓存 --- src/actions/RoleAction.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 472a850..18bd3f8 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -264,7 +264,8 @@ function _M.loginRpc( agent, data ) -- 发下缓存的世界消息 local worldChatResponse = {worldChats = {}} - local ok, msgs = pcall(skynet.call, '.globald', "lua", "getWorldMsg", role._channelIdx) + -- local ok, msgs = pcall(skynet.call, '.globald', "lua", "getWorldMsg", role._channelIdx) + local ok, msgs = true, {} if not ok then msgs = {} end @@ -945,7 +946,7 @@ function _M.chatRpc(agent, data) end end mcast_util.pub_world(actionCodes.Role_chat, MsgPack.pack(response)) - pcall(skynet.send, '.globald', "lua", "sendWorldMsg", role._channelIdx, response) + -- pcall(skynet.send, '.globald', "lua", "sendWorldMsg", role._channelIdx, response) role:mylog("role_action", {desc = "chatWorld", text1 = content}) end, -- 私聊 -- libgit2 0.21.2