From c4655fc48e23685baecd45b7342e12b09b4ae8b2 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 7 Jan 2020 15:28:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?sonar=E4=BB=A3=E7=A0=81=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/graduation_tasks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/graduation_tasks_controller.rb b/app/controllers/graduation_tasks_controller.rb index 5e48e0139..117989247 100644 --- a/app/controllers/graduation_tasks_controller.rb +++ b/app/controllers/graduation_tasks_controller.rb @@ -225,7 +225,7 @@ class GraduationTasksController < ApplicationController } attachment = work.attachments.last if attachment - o[:downloadUrl] = "https://#{Setting.host_name}/"+download_url(attachment) + o[:downloadUrl] = "https://#{edu_setting('host_name')}/"+download_url(attachment) end o From 03888e835700b2253d7f73a53b4cfc246f39c87c Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 7 Jan 2020 15:40:22 +0800 Subject: [PATCH 2/2] 1 --- app/controllers/courses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 52911e905..33c4226c2 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -224,7 +224,7 @@ class CoursesController < ApplicationController normal_status(0, "成功") rescue => e uid_logger_error(e.message) - tip_exception("课堂更新失败") + tip_exception("课堂更新失败,原因: #{e.message}") raise ActiveRecord::Rollback end end