|
|
@ -984,7 +984,7 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
homework.homework_detail_manual.update_attributes!(comment_status: 1)
|
|
|
|
homework.homework_detail_manual.update_attributes!(comment_status: 1)
|
|
|
|
|
|
|
|
|
|
|
|
if homework.course_act.blank?
|
|
|
|
if homework.course_act.blank?
|
|
|
|
homework.course_act << CourseActivity.new(user_id: homework.user_id, course_id: homework.course_id)
|
|
|
|
CourseActivity.create!(user_id: homework.user_id, course_id: homework.course_id, course_act: homework)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# 发消息
|
|
|
|
# 发消息
|
|
|
|
HomeworkCommonPushNotifyJob.perform_later(homework.id, tiding_group_ids)
|
|
|
|
HomeworkCommonPushNotifyJob.perform_later(homework.id, tiding_group_ids)
|
|
|
|