Commit 3307e57b authored by hujiebin's avatar hujiebin

uint32(otherId)

parent 37985910
...@@ -381,6 +381,7 @@ message SheepMatchSuccess { ...@@ -381,6 +381,7 @@ message SheepMatchSuccess {
string token = 6; string token = 6;
uint32 agoraId = 7; uint32 agoraId = 7;
uint32 provider = 8; uint32 provider = 8;
uint32 otherAgoraId = 9;
} }
message SheepGamePlayer { message SheepGamePlayer {
......
...@@ -290,16 +290,17 @@ func SendSheepMatchSuccess(matchId, myUserId, otherUserId uint64, nick1, nick2, ...@@ -290,16 +290,17 @@ func SendSheepMatchSuccess(matchId, myUserId, otherUserId uint64, nick1, nick2,
} }
// 羊羊匹配成功 // 羊羊匹配成功
func SendSheepMatchSuccessV2(matchId, myUserId, otherUserId uint64, nick1, nick2, avatar1, avatar2 string, gameId uint64, channelId, token string, agoraId uint32, provider int) error { func SendSheepMatchSuccessV2(matchId, myUserId, otherUserId uint64, nick1, nick2, avatar1, avatar2 string, gameId uint64, channelId, token string, agoraId, otherAgoraId uint32, provider int) error {
msg := &userProxy.SheepMatchSuccess{ msg := &userProxy.SheepMatchSuccess{
MatchId: matchId, MatchId: matchId,
User: &userProxy.User{Id: myUserId, Nick: nick1, Avatar: avatar1}, User: &userProxy.User{Id: myUserId, Nick: nick1, Avatar: avatar1},
OtherUser: &userProxy.User{Id: otherUserId, Nick: nick2, Avatar: avatar2}, OtherUser: &userProxy.User{Id: otherUserId, Nick: nick2, Avatar: avatar2},
GameId: gameId, GameId: gameId,
ChannelId: channelId, ChannelId: channelId,
Token: token, Token: token,
AgoraId: agoraId, AgoraId: agoraId,
Provider: uint32(provider), OtherAgoraId: otherAgoraId,
Provider: uint32(provider),
} }
if buffer, err := proto.Marshal(msg); err == nil { if buffer, err := proto.Marshal(msg); err == nil {
userIds := []uint64{myUserId} userIds := []uint64{myUserId}
......
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