fix bug with level download hash

This commit is contained in:
winter 2022-12-31 01:57:37 +09:00
parent 4ca2ba06ab
commit 0c1ca2bc0b
1 changed files with 1 additions and 2 deletions

View File

@ -99,8 +99,7 @@ CrystalGauntlet.endpoints["/downloadGJLevel22.php"] = ->(body : String): String
response += "#" + Hashes.gen_solo(level_data)
thing = [user_id, stars || 0, difficulty && difficulty.demon?, id, rated_coins, featured, password, 0].map! { |x| Format.fmt_value(x) }
puts thing.join(",")
thing = [user_id, stars || 0, (difficulty && difficulty.demon?) || 0, id, rated_coins, featured, password, 0].map! { |x| Format.fmt_value(x) }
response += "#" + Hashes.gen_solo_2(thing.join(","))
else
response += "-1"