班级通知修改

This commit is contained in:
yuanke 2016-08-11 11:05:19 +08:00
parent f100d3ebea
commit b8155cc1c2
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class News < ActiveRecord::Base
count = ShieldWechatMessage.where("container_type='User' and container_id=#{m.user_id} and shield_type='Course' and shield_id=#{self.course_id}").count
if count == 0
ws = WechatService.new
content = self.title.html_safe, 200
content = self.title
ws.class_notice m.user_id, "course_notice", self.id, "#{l(:label_new_notice_template)}", self.course.name, self.author.show_name, format_time(self.created_on), content, "点击查看通知详情"
end
end