发布博客500问题

chenlw_dev
huang 9 years ago
parent cd9ad535f5
commit f951d22d56

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

Loading…
Cancel
Save