diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index e0b6caa..d4a7d1c 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -527,11 +527,11 @@ function _M.searchAllRoleRpc(agent, data) } local status, body = httpc.get(codeurl, "/search_role?" .. httpGetFormatData(content), {}) - if status ~= 200 then return 2 end + if status ~= 200 then return 1 end local result = json.decode(body) - local ret = tonum(result.code) - if ret ~= 0 then return 3 end + local ret = tonum(result.errorCode) + if ret ~= 0 then return 2 end local rsp = result.data SendPacket(actionCodes.Role_searchAllRoleRpc, MsgPack.pack(rsp)) -- libgit2 0.21.2