dev_local
cxt 6 years ago
parent 9d8df30566
commit 52dab49f7b

@ -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

Loading…
Cancel
Save