From 0a20e01e02e833b815badde563b300b298a67edd Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 11 Aug 2017 20:30:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E6=B5=8B=E5=90=8E=E5=AE=9E=E8=AE=AD?= =?UTF-8?q?=E6=9C=80=E7=BB=88=E5=BE=97=E5=88=86=E6=B2=A1=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/games_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index f532e758d..e616245c6 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -299,6 +299,7 @@ class GamesController < ApplicationController #User.current.update_attributes(:grade => (User.current.grade + @game.challenge.score), :experience => (User.current.experience + @game.challenge.score)) reward_grade(@game.user, @game.id, 'Game', @game_challenge.score) reward_experience(@game.user, @game.id, 'Game', @game_challenge.score) + @game.update_attribute(:final_score, @game_challenge.score) end end if @game.outputs.blank?