From 45c4330ce886f16c997cfab6ed0da75b8fc3ac28 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Fri, 3 Dec 2021 17:55:52 +0800 Subject: [PATCH] fix: searchAllRoleRpc协议不进行本地搜索 --- src/actions/RoleAction.lua | 3 --- 1 file changed, 0 insertions(+), 3 deletions(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 88c32af..e0b6caa 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -517,8 +517,6 @@ function _M.searchAllRoleRpc(agent, data) local uid = msg.sdk_uid if not uid then return 0 end - local res = roleByUid(uid) - if not res then return 1 end local serverId = skynet.getenv("servId") @@ -536,7 +534,6 @@ function _M.searchAllRoleRpc(agent, data) if ret ~= 0 then return 3 end local rsp = result.data - table.insert(rsp, {serverId=serverId, name=res.name, level=res.level} ) SendPacket(actionCodes.Role_searchAllRoleRpc, MsgPack.pack(rsp)) return true end -- libgit2 0.21.2