Skip to content

Commit

Permalink
签到问题
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Sep 6, 2024
1 parent 09788a8 commit aba297f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/gm/Getlasttime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Getlasttime : Function<Map<String, String>, Any> {
return try {
val name = form["name"]!!
val playerInfo = Statistics.getPlayerInfo(name)
if (playerInfo == null || playerInfo.score <= 0) "{\"result\": 0}"
if (playerInfo == null || playerInfo.energy <= 0) "{\"result\": 0}"
else "{\"result\": \"${System.currentTimeMillis() - playerInfo.lastTime}\"}"
} catch (e: NullPointerException) {
"{\"error\": \"参数错误\"}"
Expand Down

0 comments on commit aba297f

Please sign in to comment.