|
|
|
@ -927,12 +927,12 @@ class CoursesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
role = course_message.content == 2 ? '7' : '9' # 7:助教 9:教师
|
|
|
|
|
ApplyTeacherRoleJoinCourseNotifyJob.perform_later(current_user.id, course.id, role)
|
|
|
|
|
teacher_role = 1
|
|
|
|
|
message = "#{course_message.content == 2 ? '助教' : '教师'}申请已提交,请等待审核"
|
|
|
|
|
else
|
|
|
|
|
message = "#{existing_course_message.content == 2 ? '助教' : '教师'}申请已提交,请等待审核"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
teacher_role = 1
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if teacher_role && current_user.student_of_course?(course)
|
|
|
|
|