|
|
|
@ -764,15 +764,10 @@ class GamesController < ApplicationController
|
|
|
|
|
# 区分评测过未评测过,未评测过按需求取数据
|
|
|
|
|
testset_detail max_query_index.to_i, game_challenge
|
|
|
|
|
|
|
|
|
|
picture = 0
|
|
|
|
|
web_route = nil
|
|
|
|
|
# 有效果展示时
|
|
|
|
|
if game_challenge.show_type.to_i != -1
|
|
|
|
|
# 处理生成图片类型文件
|
|
|
|
|
picture = (@game.picture_path.nil? ? 0 : @game.id)
|
|
|
|
|
# 针对web类型的实训
|
|
|
|
|
web_route = game_challenge.try(:web_route)
|
|
|
|
|
end
|
|
|
|
|
# 处理生成图片类型文件
|
|
|
|
|
picture = (@game.picture_path.nil? ? 0 : @game.id)
|
|
|
|
|
# 针对web类型的实训
|
|
|
|
|
web_route = game_challenge.try(:web_route)
|
|
|
|
|
|
|
|
|
|
mirror_name = @shixun.mirror_name
|
|
|
|
|
|
|
|
|
|