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