Commit e2b474f5ea053c7114cd6aa24bab75bccef44be2
1 parent
a0001fbd
fix: searchAllRoleRpc协议 code改为errcode
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/actions/RoleAction.lua
| ... | ... | @@ -527,11 +527,11 @@ function _M.searchAllRoleRpc(agent, data) |
| 527 | 527 | } |
| 528 | 528 | |
| 529 | 529 | local status, body = httpc.get(codeurl, "/search_role?" .. httpGetFormatData(content), {}) |
| 530 | - if status ~= 200 then return 2 end | |
| 530 | + if status ~= 200 then return 1 end | |
| 531 | 531 | |
| 532 | 532 | local result = json.decode(body) |
| 533 | - local ret = tonum(result.code) | |
| 534 | - if ret ~= 0 then return 3 end | |
| 533 | + local ret = tonum(result.errorCode) | |
| 534 | + if ret ~= 0 then return 2 end | |
| 535 | 535 | |
| 536 | 536 | local rsp = result.data |
| 537 | 537 | SendPacket(actionCodes.Role_searchAllRoleRpc, MsgPack.pack(rsp)) | ... | ... |