|
|
@ -78,6 +78,8 @@ class BlogComment < ActiveRecord::Base
|
|
|
|
|
|
|
|
|
|
|
|
#博客回复微信模板消息
|
|
|
|
#博客回复微信模板消息
|
|
|
|
def blog_wechat_message
|
|
|
|
def blog_wechat_message
|
|
|
|
|
|
|
|
# 发布博客
|
|
|
|
|
|
|
|
unless self.parent_id.nil?
|
|
|
|
uw = UserWechat.where(user_id: self.parent.author_id).first
|
|
|
|
uw = UserWechat.where(user_id: self.parent.author_id).first
|
|
|
|
#unless uw.nil? && self.parent.author_id != User.current.id
|
|
|
|
#unless uw.nil? && self.parent.author_id != User.current.id
|
|
|
|
unless uw.nil?
|
|
|
|
unless uw.nil?
|
|
|
@ -114,4 +116,6 @@ class BlogComment < ActiveRecord::Base
|
|
|
|
logger.info "send over. #{req}"
|
|
|
|
logger.info "send over. #{req}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|