Commit bad49c2a66eb66b796291b75518a266bc6c9a5f0
Committed by
jiyue
1 parent
72a18d45
去除重复领取剧情奖励报错 11402
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -887,7 +887,10 @@ function _M.storyBookRewardRpc(agent, data) |
887 | 887 | |
888 | 888 | local status = (storyStatus[storyId] or {}).s |
889 | 889 | |
890 | - if status == -1 then return 2 end | |
890 | + if status == -1 then | |
891 | + SendPacket(actionCodes.Role_storyBookRewardRpc, "") | |
892 | + return true | |
893 | + end | |
891 | 894 | |
892 | 895 | if not status or status ~= 1 then |
893 | 896 | --if storyBookData.unlockType == 1 and (role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) or storyId == 1 or storyId == 2) then -- 挂机剧情正在挂机也可以领奖 | ... | ... |