From b50f894fefe5af5f78926606e80e707da66e7b03 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Mon, 29 Jul 2019 17:22:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 2c0761c9..7e3b3eb0 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -2967,7 +2967,7 @@ end # end extra = member_role == 2 ? 9 : (member_role == 3 ? 7 : 10) Tiding.create(:user_id => user.id, :trigger_user_id => course.tea_id, :container_id => course.id, :container_type => 'TeacherJoinCourse', - :belong_container_id => course.id, :belong_container_type => "Course", :tiding_type => "System", :extra => member_role) + :belong_container_id => course.id, :belong_container_type => "Course", :tiding_type => "System", :extra => extra) member.course_group_id = course_group.try(:id).to_i course.course_members << member