|
|
@ -146,9 +146,10 @@ class WechatsController < ActionController::Base
|
|
|
|
您还未绑定确实的用户,请先绑定,谢谢!" } }
|
|
|
|
您还未绑定确实的用户,请先绑定,谢谢!" } }
|
|
|
|
request.reply.news(news) do |article, n, index| # article is return object
|
|
|
|
request.reply.news(news) do |article, n, index| # article is return object
|
|
|
|
url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=#{Wechat.config.appid}&redirect_uri=#{login_wechat_url}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
|
|
|
|
url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=#{Wechat.config.appid}&redirect_uri=#{login_wechat_url}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect"
|
|
|
|
|
|
|
|
pic_url = "#{Setting.protocol}://#{Setting.host_name}/images/weixin_pic.jpg"
|
|
|
|
article.item title: "#{n[:title]}",
|
|
|
|
article.item title: "#{n[:title]}",
|
|
|
|
description: n[:content],
|
|
|
|
description: n[:content],
|
|
|
|
pic_url: 'https://test.course.trustie.net/images/weixin_pic.jpg',
|
|
|
|
pic_url: pic_url,
|
|
|
|
url: url
|
|
|
|
url: url
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|