Commit 0468682385484af13186d1a09d46b6c7698a13af
1 parent
c30c986b
fix: searchAllRoleRpc协议 serverid和uid参数错误
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/actions/RoleAction.lua
@@ -522,8 +522,8 @@ function _M.searchAllRoleRpc(agent, data) | @@ -522,8 +522,8 @@ function _M.searchAllRoleRpc(agent, data) | ||
522 | local serverId = skynet.getenv("servId") | 522 | local serverId = skynet.getenv("servId") |
523 | local codeurl = skynet.getenv("codeurl") | 523 | local codeurl = skynet.getenv("codeurl") |
524 | local content = { | 524 | local content = { |
525 | - serverid = serverId, | ||
526 | - uid = uid, | 525 | + ["serverid"]= serverId, |
526 | + ["uid"]= uid, | ||
527 | } | 527 | } |
528 | 528 | ||
529 | local status, body = httpc.get(codeurl, "/search_role?" .. httpGetFormatData(content), {}) | 529 | local status, body = httpc.get(codeurl, "/search_role?" .. httpGetFormatData(content), {}) |