diff --git a/app/api/mobile/apis/courses.rb b/app/api/mobile/apis/courses.rb index cbf8f4986..57feff084 100644 --- a/app/api/mobile/apis/courses.rb +++ b/app/api/mobile/apis/courses.rb @@ -123,6 +123,12 @@ module Mobile else cs = CoursesService.new status = cs.join_course_roles({role: roles_ids, openid: params[:openid], invite_code: params[:invite_code]}, current_user) + if params[:student_flag] && status[:state] == 0 + #查询分班信息 + + + end + { status: status[:state], message:CoursesService::JoinCourseError.message(status[:state])