Skip to content

Commit

Permalink
旧数据兼容 #294
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Sep 18, 2024
1 parent 1c2e300 commit 22c71da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/Statistics.kt
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ object Statistics {
val game = a[1].toInt()
val forbid = a.getOrNull(5)?.toLong() ?: 0
val title = a.getOrNull(6) ?: ""
val lt = a.getOrNull(7)?.toLong() ?: 0
val lt = (a.getOrNull(7)?.toLong() ?: 0).let { if (it == 0L) System.currentTimeMillis() else it }
val energy = a.getOrNull(8)?.toInt() ?: 0
val maxScore = a.getOrNull(9)?.toInt() ?: score
val p = PlayerInfo(name, score, pwd, win, game, forbid, title, lt, energy, maxScore)
Expand Down

0 comments on commit 22c71da

Please sign in to comment.