Commit ef5a4bc09aa83d856e39235fbf604282c1b2f524
1 parent
1f50c8d9
Exists in
master
fix:房间排行最大评级修改
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
service/roomrank/handle.go
| ... | ... | @@ -140,6 +140,8 @@ func HandleGetSettleAward(req *models.ReqRoomRankGetSettleAward) (code string, r |
| 140 | 140 | player.Name = req.PlayerName |
| 141 | 141 | player.Icon = req.PlayerIcon |
| 142 | 142 | |
| 143 | + oldUserClass := player.UserClass | |
| 144 | + | |
| 143 | 145 | // 采用分布式锁 |
| 144 | 146 | lockKey := getLockKey(gameId, req.TopType) |
| 145 | 147 | opt := zredislock.GetOptionLimitRetry(RoomLockLinearBackoff, RoomLockMaxCount) |
| ... | ... | @@ -181,7 +183,8 @@ func HandleGetSettleAward(req *models.ReqRoomRankGetSettleAward) (code string, r |
| 181 | 183 | // 领取奖励 |
| 182 | 184 | rsp.SettleRank = player.SettleRank |
| 183 | 185 | rsp.SettleScore = player.SettleScore |
| 184 | - rsp.UserClass = player.SettleUserClass | |
| 186 | + //rsp.UserClass = player.SettleUserClass | |
| 187 | + rsp.UserClass = oldUserClass // 这里使用旧的用户评级 客户端用来打点 | |
| 185 | 188 | rsp.AwardText = player.SettleAward |
| 186 | 189 | player.SettleAward = "" |
| 187 | 190 | player.ActivityId = 0 | ... | ... |