diff --git a/worldsrv/action_friend.go b/worldsrv/action_friend.go index 254752d..13dc9e9 100644 --- a/worldsrv/action_friend.go +++ b/worldsrv/action_friend.go @@ -532,6 +532,22 @@ func (this *CSInviteFriendOpHandler) Process(s *netlib.Session, packetid int, da opRetCode = friend.OpResultCode_OPRC_Error //进入房间失败 send(p) return nil + } else { + // 进入成功 + for _, v := range scene.players { + if v == nil || len(v.TaskInviteList) == 0 || v.SnId == p.SnId { + continue + } + if v.TaskInviteList[p.SnId] == scene.sceneId { + delete(v.TaskInviteList, p.SnId) + TaskSubjectSingleton.Touch(common.TaskTypeInvitePlay, &TaskData{ + SnId: v.SnId, + GameID: scene.gameId, + GameFreeID: scene.dbGameFree.GetId(), + Num: 1, + }) + } + } } case Invite_Refuse: logger.Logger.Trace("拒绝邀请") diff --git a/worldsrv/action_game.go b/worldsrv/action_game.go index 96e7e58..b93bdce 100644 --- a/worldsrv/action_game.go +++ b/worldsrv/action_game.go @@ -167,22 +167,6 @@ func (this *CSEnterRoomHandler) Process(s *netlib.Session, packetid int, data in if !scene.PlayerEnter(p, -1, true) { code = gamehall.OpResultCode_Game_OPRC_Error_Game - } else { - // 进入成功 - for _, v := range scene.players { - if v == nil || len(v.TaskInviteList) == 0 || v.SnId == p.SnId { - continue - } - if v.TaskInviteList[p.SnId] == scene.sceneId { - delete(v.TaskInviteList, p.SnId) - TaskSubjectSingleton.Touch(common.TaskTypeInvitePlay, &TaskData{ - SnId: v.SnId, - GameID: scene.gameId, - GameFreeID: scene.dbGameFree.GetId(), - Num: 1, - }) - } - } } failed: diff --git a/worldsrv/action_shop.go b/worldsrv/action_shop.go index 90ce8a8..1d64e6e 100644 --- a/worldsrv/action_shop.go +++ b/worldsrv/action_shop.go @@ -432,6 +432,13 @@ func (this *CSPayInfoHandler) Process(s *netlib.Session, packetid int, data inte return nil }*/ } + if shopInfo.Page == ShopPagePermit { + if p.GetIsPermit() { + logger.Logger.Error("已购买典藏通行证") + SendClient(shop.OpResultCode_OPRC_Error) + return nil + } + } ShopMgrSington.SendAPICreateOrder(p, msg.ConfigPayId, shopInfo, "shop_goods_xj") } else {