From c30c986b5df9d6600bf43ab5a99686b6b5984296 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Fri, 3 Dec 2021 18:39:30 +0800 Subject: [PATCH] fix: searchAllRoleRpc协议 rsp判空 --- src/actions/RoleAction.lua | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index d4a7d1c..49e6f92 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -534,6 +534,10 @@ function _M.searchAllRoleRpc(agent, data) if ret ~= 0 then return 2 end local rsp = result.data + if not rsp or not next(rsp) then + return 3 + end + SendPacket(actionCodes.Role_searchAllRoleRpc, MsgPack.pack(rsp)) return true end -- libgit2 0.21.2