Commit 0db7720775c69674887c87809a2a1de71c25cc8f
1 parent
46248521
fix: searchAllRoleRpc协议 无值返回空
Showing
1 changed file
with
1 additions
and
5 deletions
Show diff stats
src/actions/RoleAction.lua
@@ -533,12 +533,8 @@ function _M.searchAllRoleRpc(agent, data) | @@ -533,12 +533,8 @@ function _M.searchAllRoleRpc(agent, data) | ||
533 | local ret = tonum(result.errorCode) | 533 | local ret = tonum(result.errorCode) |
534 | if ret ~= 0 then return 2 end | 534 | if ret ~= 0 then return 2 end |
535 | 535 | ||
536 | - local rsp = result.data | ||
537 | - if not rsp or not next(rsp) then | ||
538 | - return 3 | ||
539 | - end | ||
540 | 536 | ||
541 | - SendPacket(actionCodes.Role_searchAllRoleRpc, MsgPack.pack(rsp)) | 537 | + SendPacket(actionCodes.Role_searchAllRoleRpc, MsgPack.pack(result.data or {})) |
542 | return true | 538 | return true |
543 | end | 539 | end |
544 | 540 |