|
|
@ -247,7 +247,7 @@ class MyshixunsController < ApplicationController
|
|
|
|
def update_file
|
|
|
|
def update_file
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
@hide_code = Shixun.where(id: @myshixun.shixun_id).pluck(:hide_code).first
|
|
|
|
@hide_code = Shixun.where(id: @myshixun.shixun_id).pluck(:hide_code).first
|
|
|
|
tip_exception("技术平台为空!") if @myshixun.mirror_name.blank?
|
|
|
|
tip_exception("实验环境不能为空,请查看实训模板的环境配置项是否正确!") if (@myshixun.mirror_name.blank? || @myshixun.mirror_name.first.to_s == "-1")
|
|
|
|
path = params[:path].strip unless params[:path].blank?
|
|
|
|
path = params[:path].strip unless params[:path].blank?
|
|
|
|
game_id = params[:game_id]
|
|
|
|
game_id = params[:game_id]
|
|
|
|
game = Game.find(game_id)
|
|
|
|
game = Game.find(game_id)
|
|
|
|