动态内容调整

This commit is contained in:
guange 2016-01-20 23:29:22 +08:00
parent 22a83bee0e
commit 472c6acf2b
1 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ class WechatsController < ActionController::Base
article.item title: "#{index} #{n[:title]}", article.item title: "#{index} #{n[:title]}",
description: n[:content], description: n[:content],
pic_url: n[:picurl], pic_url: n[:picurl],
url: 'http://www.baidu.com/' url: n[:url]
end end
else else
openid = request[:FromUserName] openid = request[:FromUserName]
@ -213,7 +213,7 @@ class WechatsController < ActionController::Base
when 'Project' when 'Project'
case user_activity.act_type.to_s case user_activity.act_type.to_s
when 'Issue' when 'Issue'
[act.project.name.to_s+" | 项目问题", act.subject.to_s, project_issues_path(act.project), url_to_avatar(act.author)] [act.project.name.to_s+" | 项目问题", act.subject.to_s, url_to_avatar(act.author),project_issues_url(act.project)]
end end
end end
end end