|
|
|
@ -347,10 +347,11 @@ class GamesService
|
|
|
|
|
rev = params[:rev] ? params[:rev] : "master"
|
|
|
|
|
content_modified = 0
|
|
|
|
|
ActiveRecord::Base.transaction do
|
|
|
|
|
sec_key = generates_identifier(EvaluateRecord, 10)
|
|
|
|
|
|
|
|
|
|
# params[:evaluate] 实训评测时更新必须给的参数,需要依据该参数做性能统计,其它类型的更新可以跳过
|
|
|
|
|
# 自动保存的时候evaluate为0;点评测的时候为1
|
|
|
|
|
if params[:evaluate] == 1
|
|
|
|
|
sec_key = generates_identifier(EvaluateRecord, 10)
|
|
|
|
|
record = EvaluateRecord.create!(:user_id => current_user.id, :shixun_id => @myshixun.shixun.id,
|
|
|
|
|
:game_id => @game.id, :identifier => sec_key)
|
|
|
|
|
Rails.logger.warn("##game is is #{@game.id}, record id is #{record.id}, time is**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
|
|
|
|
|