|
|
@ -627,6 +627,7 @@ class GamesController < ApplicationController
|
|
|
|
@game.update_attributes(:status => 2, :end_time => Time.now)
|
|
|
|
@game.update_attributes(:status => 2, :end_time => Time.now)
|
|
|
|
# TPM实训已发布并且没有查看答案
|
|
|
|
# TPM实训已发布并且没有查看答案
|
|
|
|
if @shixun.is_published? && !@game.answer_open
|
|
|
|
if @shixun.is_published? && !@game.answer_open
|
|
|
|
|
|
|
|
uid_logger("@@@@@@@@@@@@@@@@@chooice score: #{score}")
|
|
|
|
# 查看答案的时候处理final_scor和扣分记录
|
|
|
|
# 查看答案的时候处理final_scor和扣分记录
|
|
|
|
experience = score
|
|
|
|
experience = score
|
|
|
|
reward_attrs = { container_id: @game.id, container_type: 'Game', score: score }
|
|
|
|
reward_attrs = { container_id: @game.id, container_type: 'Game', score: score }
|
|
|
|