Commit 0b07e046a0157deb5860bb61ac4234f7c9664b35
1 parent
46b61f64
Exists in
master
feat✨:排行榜功能 结算修复
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
service/roomrank/handle.go
| @@ -214,6 +214,7 @@ func HandleAddScore(req *models.ReqRoomRankAddScore) (code string, rsp models.Rs | @@ -214,6 +214,7 @@ func HandleAddScore(req *models.ReqRoomRankAddScore) (code string, rsp models.Rs | ||
| 214 | } | 214 | } |
| 215 | if player.SettleHas() { | 215 | if player.SettleHas() { |
| 216 | rsp.RoomRankInfo = GetInfoFromSettle(player) | 216 | rsp.RoomRankInfo = GetInfoFromSettle(player) |
| 217 | + code = code_msg.RECODE_MERGE_ROOMRANK_HASSETTLE_ERROR | ||
| 217 | return | 218 | return |
| 218 | } | 219 | } |
| 219 | /* ----- 结算 End -----*/ | 220 | /* ----- 结算 End -----*/ |
service/roomrank/player.go
| @@ -37,7 +37,7 @@ func LoadPlayer(gameId string, playerUid int64, topType int) (player *Player) { | @@ -37,7 +37,7 @@ func LoadPlayer(gameId string, playerUid int64, topType int) (player *Player) { | ||
| 37 | player.Init(playerUid, topType) | 37 | player.Init(playerUid, topType) |
| 38 | err = svmysql.Create(player, gameId) | 38 | err = svmysql.Create(player, gameId) |
| 39 | if err != nil { | 39 | if err != nil { |
| 40 | - lxalilog.Errors(err, "roomrank._LoadPlayer Create error", gameId, player.Uid, player.ActivityId) | 40 | + lxalilog.Errors(err, "roomrank._LoadPlayer Create error", gameId, player.Uid, player.TopType) |
| 41 | return | 41 | return |
| 42 | } | 42 | } |
| 43 | } | 43 | } |