dev_aliyun
cxt 5 years ago
parent a1c1d52b47
commit b50f894fef

@ -2967,7 +2967,7 @@ end
# end # end
extra = member_role == 2 ? 9 : (member_role == 3 ? 7 : 10) 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', 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 member.course_group_id = course_group.try(:id).to_i
course.course_members << member course.course_members << member

Loading…
Cancel
Save