图片调整

This commit is contained in:
guange 2016-01-20 22:27:50 +08:00
parent 02cf9b56e1
commit a72339fe2c
1 changed files with 2 additions and 2 deletions

View File

@ -125,12 +125,12 @@ class WechatsController < ActionController::Base
news = ua.map do |ua|
{title: "act_type: #{ua.act_type}, act_id: #{ua.act_id}",
content: "container_id: #{ua.container_id}, container_type: #{ua.container_type}",
pic_url:"http://wechat.trustie.net/images/trustie_logo#{logo}.png" }
picurl: "http://wechat.trustie.net/images/#{logo}" }
logo = "trustie_logo1.png"
end
request.reply.news(news) do |article, n, index| # article is return object
article.item title: "#{index} #{n[:title]}", description: n[:content], pic_url: n[:pic_url], url: 'http://www.baidu.com/'
article.item title: "#{index} #{n[:title]}", description: n[:content], pic_url: n[:picurl], url: 'http://www.baidu.com/'
end
else
openid = request[:FromUserName]