|
|
|
@ -32,6 +32,6 @@ class CourseMessage < ApplicationRecord
|
|
|
|
|
belong_container: course, extra: content.to_i == 2 ? '9' : '7', tiding_type: 'System', status: deal_status
|
|
|
|
|
)
|
|
|
|
|
# 将申请消息置为已处理
|
|
|
|
|
Tiding.where(trigger_user_id: user_id, container_id: course_id, container_type: 'JoinCourse', status: 0).update_all(status: 1)
|
|
|
|
|
Tiding.where(trigger_user_id: course_message_id, container_id: course_id, container_type: 'JoinCourse', status: 0).update_all(status: 1)
|
|
|
|
|
end
|
|
|
|
|
end
|