From 200652e6e80c9547612855ec58dc58412c5647b3 Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Wed, 25 Aug 2021 18:20:40 +0800 Subject: [PATCH] fix: 修正两个协议的返回值 return true --- src/actions/RoleAction.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 13f646c..ad1212b 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -1741,12 +1741,11 @@ function _M.itemConvertMonthCardRpc(agent, data) end SendPacket(actionCodes.Role_itemConvertMonthCardRpc, MsgPack.pack(role:packReward(reward))) - return status + return true end function _M.worldLineRoulette(agent, data) local role = agent.role - local msg = MsgPack.unpack(data) local worldChangePoints = role:getProperty("worldChangePoints") or {} local rouletteCount = worldChangePoints[ItemWorldLine.RouletteCount] or 0 @@ -1803,6 +1802,7 @@ function _M.worldLineReward(agent, data) reward, change = role:award(reward, {log = {desc = "worldLine", int1 = role:getProperty("id")}}) end SendPacket(actionCodes.Role_worldLineReward, MsgPack.pack(role:packReward(reward, change))) + return true end return _M \ No newline at end of file -- libgit2 0.21.2