Commit b42217e6decc401f13e07116ebc4addbe32d6b0a

Authored by zhangqijia
1 parent 9e4a7b54

fix: searchAllRoleRpc协议增加sdk_uid字段

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/actions/RoleAction.lua
... ... @@ -513,7 +513,8 @@ end
513 513  
514 514 function _M.searchAllRoleRpc(agent, data)
515 515 local role = agent.role
516   - local uid = role:getProperty("uid")
  516 + local msg = MsgPack.unpack(data)
  517 + local uid = msg.sdk_uid
517 518 if not uid then return 0 end
518 519  
519 520 local res = roleByUid(uid)
... ...