From 3bc5d0d2e0332274c50bb468df4b68a7472ac5b6 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 23 Jun 2017 10:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/games_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index d11a45f12..0e8f98746 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -214,7 +214,8 @@ class GamesController < ApplicationController if @game.status == 2 @game.next_game.update_attribute(:status, 0) game_passed_code(@game.id, game_challenge.try(:path), @myshixun.try(:gpid), 1) - if !@game.answer_open && shixun.status > 1 reward_grade(@game.user, @game.id, @game.class, game_challenge.score) + if !@game.answer_open && shixun.status > 1 + reward_grade(@game.user, @game.id, @game.class, game_challenge.score) end end end