加入课堂调整

dev_video
cxt 5 years ago
parent 75615bc858
commit b34f3201c1

@ -1197,7 +1197,7 @@ class CoursesController < ApplicationController
if (teacher_role && student_role) || message.to_s == "您已是课堂成员"
render json: { status: 0, message: message, course_id: course.id}
elsif student_role
elsif student_role.to_i == 1
render json: { status: 0, message: "加入成功", course_id: course.id}
else
normal_status(message)

Loading…
Cancel
Save