Commit a0001fbdcd548d5a5b2a8e987b69e26c213729af
1 parent
7f298cd0
fix: searchAllRoleRpc协议不进行本地搜索
Showing
1 changed file
with
0 additions
and
3 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -517,8 +517,6 @@ function _M.searchAllRoleRpc(agent, data) |
517 | 517 | local uid = msg.sdk_uid |
518 | 518 | if not uid then return 0 end |
519 | 519 | |
520 | - local res = roleByUid(uid) | |
521 | - if not res then return 1 end | |
522 | 520 | |
523 | 521 | |
524 | 522 | local serverId = skynet.getenv("servId") |
... | ... | @@ -536,7 +534,6 @@ function _M.searchAllRoleRpc(agent, data) |
536 | 534 | if ret ~= 0 then return 3 end |
537 | 535 | |
538 | 536 | local rsp = result.data |
539 | - table.insert(rsp, {serverId=serverId, name=res.name, level=res.level} ) | |
540 | 537 | SendPacket(actionCodes.Role_searchAllRoleRpc, MsgPack.pack(rsp)) |
541 | 538 | return true |
542 | 539 | end | ... | ... |