From 75615bc8586c4f4aa58b547202f7ee0a6f2600a5 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 4 Feb 2020 15:26:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=AF=BE=E5=A0=82=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index bb1c32864..9938c3b0b 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -1195,7 +1195,7 @@ class CoursesController < ApplicationController teacher_role = 1 end - if teacher_role && student_role + if (teacher_role && student_role) || message.to_s == "您已是课堂成员" render json: { status: 0, message: message, course_id: course.id} elsif student_role render json: { status: 0, message: "加入成功", course_id: course.id}