From fa1af83d6d941405edc23f87b40fa77337d02bb3 Mon Sep 17 00:00:00 2001 From: daiao <35855898@qq.com> Date: Mon, 11 Mar 2019 09:08:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E8=80=83=E7=AD=94=E6=A1=88=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/games_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/games_service.rb b/app/services/games_service.rb index d1baa8b3..0ed0cbe1 100644 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -796,7 +796,7 @@ class GamesService if game_status == 2 # 通关 if shixun.status > 1 score = game.final_score # 查看答案的时候有对最终获得金币进行处理 - experience = game.answer_open ? 0 : game_challenge.score.to_i + experience = game.answer_open > 0 ? 0 : game_challenge.score.to_i else score = 0 experience = 0