|
|
@ -539,7 +539,7 @@ class GamesController < ApplicationController
|
|
|
|
# 编程题评测
|
|
|
|
# 编程题评测
|
|
|
|
def game_build
|
|
|
|
def game_build
|
|
|
|
sec_key = params[:sec_key]
|
|
|
|
sec_key = params[:sec_key]
|
|
|
|
game_challenge = Challenge.select([:id, :position, :picture_path]).find(@game.challenge_id)
|
|
|
|
game_challenge = Challenge.select([:id, :position, :picture_path, :exec_time]).find(@game.challenge_id)
|
|
|
|
|
|
|
|
|
|
|
|
# 更新评测次数
|
|
|
|
# 更新评测次数
|
|
|
|
@game.update_column(:evaluate_count, (@game.evaluate_count.to_i + 1))
|
|
|
|
@game.update_column(:evaluate_count, (@game.evaluate_count.to_i + 1))
|
|
|
|