From 73c61f8377eb97579ff98ea5b9fa2f315a645c71 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 11 Dec 2019 09:20:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E5=AE=9E=E8=AE=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/shixuns/create_shixun_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/shixuns/create_shixun_service.rb b/app/services/shixuns/create_shixun_service.rb index 44f5cba3b..7f511b357 100644 --- a/app/services/shixuns/create_shixun_service.rb +++ b/app/services/shixuns/create_shixun_service.rb @@ -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