Commit 46e54ae750e45500f39b1b22a961a103e3cce709
1 parent
a16873dc
Exists in
master
feat:排行榜获取信息时定时刷新分数
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
service/roomrank/handle.go
| @@ -91,6 +91,7 @@ func HandleInfo(req *models.ReqRoomRankInfo) (code string, rsp models.RspRoomRan | @@ -91,6 +91,7 @@ func HandleInfo(req *models.ReqRoomRankInfo) (code string, rsp models.RspRoomRan | ||
| 91 | // 找到原房间 | 91 | // 找到原房间 |
| 92 | roomOld, hasOldRoom := TryGetRoom(gameId, req.TopType, player, config) | 92 | roomOld, hasOldRoom := TryGetRoom(gameId, req.TopType, player, config) |
| 93 | if hasOldRoom { | 93 | if hasOldRoom { |
| 94 | + TryReSort(roomOld, config) | ||
| 94 | rsp.RoomRankInfo = GetInfoFromRoom(gameId, player, roomOld, config) | 95 | rsp.RoomRankInfo = GetInfoFromRoom(gameId, player, roomOld, config) |
| 95 | return | 96 | return |
| 96 | } | 97 | } |