@ -414,6 +413,9 @@ class CoursesController < ApplicationController
end
defsettings
#添加成员消息状态
join_course_messages=CourseMessage.where("user_id =? and course_message_type =? and course_id =? and status = ? and viewed =?",User.current.id,'JoinCourse',@course.id,1,0)