Commit eba94a095c966b0b9bf82b200b464f2db8a5fff8
1 parent
6a61fe2c
修改联动好友赠送活动的消息通知结构
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/actions/ActivityAction.lua
... | ... | @@ -937,7 +937,7 @@ function _M.friendHelpRpc(agent, data) |
937 | 937 | giveFE[friendId] = 1 |
938 | 938 | award[gift[1]] = (award[gift[1]] or 0) + gift[2] |
939 | 939 | red:sadd(FRIEND_ENERGY:format(friendId), roleId) |
940 | - rpcRole(friendId, "SendPacket", actionCodes.Role_notifyNewEvent, MsgPack.pack({actFriendGive = 1, roleId = roleId})) | |
940 | + rpcRole(friendId, "SendPacket", actionCodes.Role_notifyNewEvent, MsgPack.pack({events = {actFriendGive = roleId}})) | |
941 | 941 | end |
942 | 942 | end |
943 | 943 | end) |
... | ... | @@ -993,7 +993,7 @@ function _M.friendHelpRpc(agent, data) |
993 | 993 | giveFE[friendId] = 1 |
994 | 994 | award[gift1[1]] = (award[gift1[1]] or 0) + gift1[2] |
995 | 995 | red:sadd(FRIEND_ENERGY:format(friendId), roleId) |
996 | - rpcRole(friendId, "SendPacket", actionCodes.Role_notifyNewEvent, MsgPack.pack({actFriendGive = 1, roleId = roleId})) | |
996 | + rpcRole(friendId, "SendPacket", actionCodes.Role_notifyNewEvent, MsgPack.pack({events = {actFriendGive = roleId}})) | |
997 | 997 | end |
998 | 998 | |
999 | 999 | if not getFE[friendId] and limit <= getLimit then | ... | ... |