|
|
|
@ -749,6 +749,8 @@ class GamesController < ApplicationController
|
|
|
|
|
# 针对web类型的实训
|
|
|
|
|
web_route = game_challenge.try(:web_route)
|
|
|
|
|
|
|
|
|
|
server_url = @game.get_server_url if web_route.present?
|
|
|
|
|
|
|
|
|
|
mirror_name = @shixun.mirror_name
|
|
|
|
|
|
|
|
|
|
e_record = EvaluateRecord.where(:identifier => sec_key).first
|
|
|
|
@ -776,7 +778,7 @@ class GamesController < ApplicationController
|
|
|
|
|
@base_date = {grade: grade, gold: score, experience: experience, status: game_status, had_done: had_done,
|
|
|
|
|
position: game_challenge.position, port: port, record_consume_time: record_consume_time,
|
|
|
|
|
mirror_name: mirror_name, picture: picture, web_route: web_route, star: @game.star,
|
|
|
|
|
next_game: next_game, prev_game: prev_game, max_mem: max_mem}
|
|
|
|
|
next_game: next_game, prev_game: prev_game, max_mem: max_mem, server_url: server_url}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 记录实训花费的时间
|
|
|
|
|