@ -33,7 +33,7 @@ module GradeDecorator
game.present? ? "查看实训“#{game.challenge.shixun.name}”第#{game.challenge.position}关的TA人解答消耗的金币" : ''
when 'hack' then
hack = Hack.find_by(id: container_id)
game.present? ? "完成了题目解答“#{hack.name}”,获得金币奖励:#{hack.score}" : ''
hack.present? ? "完成了题目解答“#{hack.name}”,获得金币奖励:#{hack.score}" : ''
end
@ -242,8 +242,10 @@ module TidingDecorator
when 'Game' then
game = Game.find_by(id: parent_container_id)
Rails.logger.info("#####game:#{game.id}")
if game.present?
format_str = I18n.t(locale_format(parent_container_type))
Rails.logger.info("#####format_str:#{format_str}")
format_str % [game.challenge.shixun.name, game.challenge.position, container.score]
when 'testSet' then