Commit bafcce8049bfcac3dd4d7b93b0b9bb938217de5d
1 parent
b8dfef84
Exists in
master
and in
1 other branch
feat✨:排行榜功能 排序规则细化
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
service/roomrank/dto-room.go
service/roomrank/logic.go
| ... | ... | @@ -3,6 +3,7 @@ package roomrank |
| 3 | 3 | import ( |
| 4 | 4 | "apigame/configs/confroomrank" |
| 5 | 5 | "apigame/service-common/svconst" |
| 6 | + "apigame/util/util-lx/lxtime" | |
| 6 | 7 | "apigame/util/utstring" |
| 7 | 8 | "apigame/util/ztime" |
| 8 | 9 | "fmt" |
| ... | ... | @@ -120,6 +121,7 @@ func UpdatePlayerScore(room *Room, player *Player) { |
| 120 | 121 | p.Name = player.Name |
| 121 | 122 | p.Icon = player.Icon |
| 122 | 123 | p.Score = player.Score |
| 124 | + p.JoinTime = lxtime.NowUninx() | |
| 123 | 125 | return |
| 124 | 126 | } |
| 125 | 127 | } | ... | ... |