Commit f8a121e8 authored by hujiebin's avatar hujiebin

Update user_center_func.go

parent 6cfd5ba2
......@@ -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,注意闭包问题
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment