From 52dab49f7b923c23b6d3b6587f52385b97ffdb56 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sun, 5 May 2019 20:03:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/game.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/game.rb b/app/models/game.rb index 152ede0c..1ec1f8ea 100644 --- a/app/models/game.rb +++ b/app/models/game.rb @@ -22,7 +22,7 @@ class Game < ActiveRecord::Base # 根据得分比例来算实际得分(试卷、实训作业) def real_score score - self.final_score == challenge.score ? self.final_score : (self.final_score.to_f / challenge.score) * score + self.final_score == challenge.score ? score : (self.final_score.to_f / challenge.score) * score end def had_done