Commit d00d4b92 authored by hujiebin's avatar hujiebin

gameCode

parent 5be194e5
......@@ -472,4 +472,5 @@ message LobbyMatchSuccess {
string group_id = 3;
User user = 4;
User otherUser = 5;
string gameCode = 6;
}
\ No newline at end of file
......@@ -452,13 +452,14 @@ func SendSocketMicChange(seqId string, userId uint64, micUserExternalId, txGroup
}
// 游戏大厅匹配成功
func SendLobbyMatchSuccess(myUserId, otherUserId uint64, nick1, nick2, avatar1, avatar2 string, gameId uint64, txGroupId string, mode int) error {
func SendLobbyMatchSuccess(myUserId, otherUserId uint64, nick1, nick2, avatar1, avatar2 string, gameId uint64, txGroupId string, mode int, gameCode string) error {
msg := &userProxy.LobbyMatchSuccess{
GameId: gameId,
GroupId: txGroupId,
Mode: uint64(mode),
User: &userProxy.User{Id: myUserId, Nick: nick1, Avatar: avatar1},
OtherUser: &userProxy.User{Id: otherUserId, Nick: nick2, Avatar: avatar2},
GameCode: gameCode,
}
if buffer, err := proto.Marshal(msg); err == nil {
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