|
|
|
@ -174,7 +174,7 @@ class News < ActiveRecord::Base
|
|
|
|
|
if count == 0
|
|
|
|
|
ws = WechatService.new
|
|
|
|
|
content = strip_html self.author.try(:realname) + " 发布了通知:" + self.title.html_safe, 200
|
|
|
|
|
ws.message_update_template m.user_id, "course_notice", self.id, "#{l(:label_new_notice_template)}", self.author.try(:realname) + " 发布了通知:" + content, format_time(self.created_on)
|
|
|
|
|
ws.message_update_template m.user_id, "course_notice", self.id, "#{l(:label_new_notice_template)}", content, format_time(self.created_on)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|