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
89adccd1
Commit
89adccd1
authored
Apr 20, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:调整排序
parent
03bf3894
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
user_center_func.go
rpc/user_center_func.go
+6
-0
No files found.
rpc/user_center_func.go
View file @
89adccd1
...
...
@@ -262,6 +262,12 @@ func SendSheepGameResult(matchId, winId, userId1, userId2 uint64, nick1, nick2,
players
=
append
(
players
,
&
userProxy
.
SheepGamePlayer
{
IsWin
:
winId
==
userId2
,
User
:
&
userProxy
.
User
{
Id
:
userId2
,
Nick
:
nick2
,
Avatar
:
avatar2
,
}})
if
!
players
[
0
]
.
IsWin
{
players
[
0
],
players
[
1
]
=
players
[
1
],
players
[
0
]
}
for
i
:=
range
players
{
players
[
i
]
.
Rank
=
int32
(
i
)
+
1
}
msg
:=
&
userProxy
.
SheepGameResult
{
MatchId
:
matchId
,
Players
:
players
,
...
...
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