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
3307e57b
Commit
3307e57b
authored
Aug 11, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uint32(otherId)
parent
37985910
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
userProxy.proto
protocol/userProxy.proto
+1
-0
user_center_func.go
rpc/user_center_func.go
+10
-9
No files found.
protocol/userProxy.proto
View file @
3307e57b
...
...
@@ -381,6 +381,7 @@ message SheepMatchSuccess {
string
token
=
6
;
uint32
agoraId
=
7
;
uint32
provider
=
8
;
uint32
otherAgoraId
=
9
;
}
message
SheepGamePlayer
{
...
...
rpc/user_center_func.go
View file @
3307e57b
...
...
@@ -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
{
MatchId
:
matchId
,
User
:
&
userProxy
.
User
{
Id
:
myUserId
,
Nick
:
nick1
,
Avatar
:
avatar1
},
OtherUser
:
&
userProxy
.
User
{
Id
:
otherUserId
,
Nick
:
nick2
,
Avatar
:
avatar2
},
GameId
:
gameId
,
ChannelId
:
channelId
,
Token
:
token
,
AgoraId
:
agoraId
,
Provider
:
uint32
(
provider
),
MatchId
:
matchId
,
User
:
&
userProxy
.
User
{
Id
:
myUserId
,
Nick
:
nick1
,
Avatar
:
avatar1
},
OtherUser
:
&
userProxy
.
User
{
Id
:
otherUserId
,
Nick
:
nick2
,
Avatar
:
avatar2
},
GameId
:
gameId
,
ChannelId
:
channelId
,
Token
:
token
,
AgoraId
:
agoraId
,
OtherAgoraId
:
otherAgoraId
,
Provider
:
uint32
(
provider
),
}
if
buffer
,
err
:=
proto
.
Marshal
(
msg
);
err
==
nil
{
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