新建实训

dev_daiao
daiao 5 years ago
parent e5a7a4aa06
commit 73c61f8377

@ -45,7 +45,7 @@ class CreateShixunService < ApplicationService
end
rescue => e
Rails.logger.error(e.message)
tip_exception("实训创建失败:#{e.message}")
render_error("实训创建失败:#{e.message}")
end
end
@ -53,7 +53,7 @@ class CreateShixunService < ApplicationService
def get_shixun_script shixun, main_mirror, sub_mirrors
if !shixun.is_jupyter?
mirror = main_type.mirror_scripts
mirror = main_mirror.mirror_scripts
if main_mirror.blank?
modify_shixun_script shixun, mirror.first&.(:script)
else

Loading…
Cancel
Save