修改开启匿评中的send_message_anonymous_comment方法成对应代码
This commit is contained in:
parent
769a4a1bcf
commit
2557e9063d
|
@ -26,7 +26,11 @@ namespace :homework_evaluation do
|
|||
end
|
||||
homework_detail_manual.update_column('comment_status', 2)
|
||||
# 匿评开启消息邮件通知,# 所有人
|
||||
send_message_anonymous_comment(homework_common, 2)
|
||||
#send_message_anonymous_comment(homework_common, 2)
|
||||
course = homework_common.course
|
||||
course.members.each do |m|
|
||||
homework_common.course_messages << CourseMessage.new(:user_id => m.user_id, :course_id => course.id, :viewed => false, :status => 2)
|
||||
end
|
||||
# 邮件通知
|
||||
Mailer.send_mail_anonymous_comment_close(homework_common).deliver
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue