Commit 200652e6e80c9547612855ec58dc58412c5647b3
1 parent
95c9089b
fix: 修正两个协议的返回值 return true
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -1741,12 +1741,11 @@ function _M.itemConvertMonthCardRpc(agent, data) |
1741 | 1741 | end |
1742 | 1742 | |
1743 | 1743 | SendPacket(actionCodes.Role_itemConvertMonthCardRpc, MsgPack.pack(role:packReward(reward))) |
1744 | - return status | |
1744 | + return true | |
1745 | 1745 | end |
1746 | 1746 | |
1747 | 1747 | function _M.worldLineRoulette(agent, data) |
1748 | 1748 | local role = agent.role |
1749 | - local msg = MsgPack.unpack(data) | |
1750 | 1749 | |
1751 | 1750 | local worldChangePoints = role:getProperty("worldChangePoints") or {} |
1752 | 1751 | local rouletteCount = worldChangePoints[ItemWorldLine.RouletteCount] or 0 |
... | ... | @@ -1803,6 +1802,7 @@ function _M.worldLineReward(agent, data) |
1803 | 1802 | reward, change = role:award(reward, {log = {desc = "worldLine", int1 = role:getProperty("id")}}) |
1804 | 1803 | end |
1805 | 1804 | SendPacket(actionCodes.Role_worldLineReward, MsgPack.pack(role:packReward(reward, change))) |
1805 | + return true | |
1806 | 1806 | end |
1807 | 1807 | |
1808 | 1808 | return _M |
1809 | 1809 | \ No newline at end of file | ... | ... |