diff --git a/rpc/user_center_func.go b/rpc/user_center_func.go index f82275a28c86fbb397b4b0599305a218c5568851..522887d94280e086f4aef325765f90ee01e2a967 100644 --- a/rpc/user_center_func.go +++ b/rpc/user_center_func.go @@ -226,13 +226,7 @@ func SendSheepMatchSuccess(matchId, myUserId, otherUserId uint64, nick1, nick2, OtherUser: &userProxy.User{Id: otherUserId, Nick: nick2, Avatar: avatar2}, } if buffer, err := proto.Marshal(msg); err == nil { - var userIds []uint64 - if myUserId > 0 { - userIds = append(userIds, myUserId) - } - if otherUserId > 0 { - userIds = append(userIds, otherUserId) - } + userIds := []uint64{myUserId} rspUids, err := multicast(userIds, MsgTypeSheepGameMatchSuccess, buffer) //记录socket,注意闭包问题