Commit fa2313a8feb8a13e61aeb707c74cec1939c723eb

Authored by zhangqijia
1 parent 04686823

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 533 local ret = tonum(result.errorCode)
534 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 538 return true
543 539 end
544 540  
... ...