Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-common
Commits
d00d4b92
Commit
d00d4b92
authored
Aug 07, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gameCode
parent
5be194e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
userProxy.proto
protocol/userProxy.proto
+1
-0
user_center_func.go
rpc/user_center_func.go
+2
-1
No files found.
protocol/userProxy.proto
View file @
d00d4b92
...
@@ -472,4 +472,5 @@ message LobbyMatchSuccess {
...
@@ -472,4 +472,5 @@ message LobbyMatchSuccess {
string
group_id
=
3
;
string
group_id
=
3
;
User
user
=
4
;
User
user
=
4
;
User
otherUser
=
5
;
User
otherUser
=
5
;
string
gameCode
=
6
;
}
}
\ No newline at end of file
rpc/user_center_func.go
View file @
d00d4b92
...
@@ -452,13 +452,14 @@ func SendSocketMicChange(seqId string, userId uint64, micUserExternalId, txGroup
...
@@ -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
{
msg
:=
&
userProxy
.
LobbyMatchSuccess
{
GameId
:
gameId
,
GameId
:
gameId
,
GroupId
:
txGroupId
,
GroupId
:
txGroupId
,
Mode
:
uint64
(
mode
),
Mode
:
uint64
(
mode
),
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
},
GameCode
:
gameCode
,
}
}
if
buffer
,
err
:=
proto
.
Marshal
(
msg
);
err
==
nil
{
if
buffer
,
err
:=
proto
.
Marshal
(
msg
);
err
==
nil
{
userIds
:=
[]
uint64
{
myUserId
}
userIds
:=
[]
uint64
{
myUserId
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment