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,8 +517,6 @@ function _M.searchAllRoleRpc(agent, data) | ||
517 | local uid = msg.sdk_uid | 517 | local uid = msg.sdk_uid |
518 | if not uid then return 0 end | 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 | local serverId = skynet.getenv("servId") | 522 | local serverId = skynet.getenv("servId") |
@@ -536,7 +534,6 @@ function _M.searchAllRoleRpc(agent, data) | @@ -536,7 +534,6 @@ function _M.searchAllRoleRpc(agent, data) | ||
536 | if ret ~= 0 then return 3 end | 534 | if ret ~= 0 then return 3 end |
537 | 535 | ||
538 | local rsp = result.data | 536 | local rsp = result.data |
539 | - table.insert(rsp, {serverId=serverId, name=res.name, level=res.level} ) | ||
540 | SendPacket(actionCodes.Role_searchAllRoleRpc, MsgPack.pack(rsp)) | 537 | SendPacket(actionCodes.Role_searchAllRoleRpc, MsgPack.pack(rsp)) |
541 | return true | 538 | return true |
542 | end | 539 | end |