Commit 212ff09c509b193d909208d5296eaf51f7621cdc
1 parent
2c35f0c9
Exists in
master
and in
1 other branch
feat✨:排行榜结算方式改为每天结算
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
service/roomrank/room.go
| @@ -7,7 +7,6 @@ import ( | @@ -7,7 +7,6 @@ import ( | ||
| 7 | "apigame/util/util-lx/lxalilog" | 7 | "apigame/util/util-lx/lxalilog" |
| 8 | "apigame/util/util-lx/lxtime" | 8 | "apigame/util/util-lx/lxtime" |
| 9 | "apigame/util/ztime" | 9 | "apigame/util/ztime" |
| 10 | - "fmt" | ||
| 11 | "math" | 10 | "math" |
| 12 | "math/rand" | 11 | "math/rand" |
| 13 | "sort" | 12 | "sort" |
| @@ -264,7 +263,6 @@ func TryResetRobot(room *Room, config *confroomrank.ActivityConfig) { | @@ -264,7 +263,6 @@ func TryResetRobot(room *Room, config *confroomrank.ActivityConfig) { | ||
| 264 | } else { | 263 | } else { |
| 265 | percent = float64(secNow-dtStart) * 100 / float64(dtEnd-dtStart) | 264 | percent = float64(secNow-dtStart) * 100 / float64(dtEnd-dtStart) |
| 266 | } | 265 | } |
| 267 | - fmt.Println("dwjw🐸 percent", percent) | ||
| 268 | 266 | ||
| 269 | // 机器人即时算分 | 267 | // 机器人即时算分 |
| 270 | for i := 0; i < len(room.Details.Players); i++ { | 268 | for i := 0; i < len(room.Details.Players); i++ { |