修改开启匿评中的send_message_anonymous_comment方法成对应代码

This commit is contained in:
ouyangxuhua 2015-09-29 10:25:37 +08:00
parent 769a4a1bcf
commit 2557e9063d
1 changed files with 5 additions and 1 deletions

View File

@ -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