|
|
|
@ -928,12 +928,14 @@ class CoursesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
course_message.save!
|
|
|
|
|
|
|
|
|
|
role = course_message.content == 2 ? '7' : '9' # 7:助教 9:教师
|
|
|
|
|
role = course_message.content == 2 ? '9' : '7' # 7:助教 9:教师
|
|
|
|
|
ApplyTeacherRoleJoinCourseNotifyJob.perform_later(current_user.id, course.id, role)
|
|
|
|
|
message = "#{course_message.content == 2 ? '助教' : '教师'}申请已提交,请等待审核"
|
|
|
|
|
message = "#{course_message.content == 2 ? '教师' : '助教'}申请已提交,请等待审核"
|
|
|
|
|
else
|
|
|
|
|
message = "#{existing_course_message.content == 2 ? '助教' : '教师'}申请已提交,请等待审核"
|
|
|
|
|
message = "#{existing_course_message.content == 2 ? '教师' : '助教'}申请已提交,请等待审核"
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
message = "您已是课堂成员"
|
|
|
|
|
end
|
|
|
|
|
teacher_role = 1
|
|
|
|
|
end
|
|
|
|
|