From 436de8ce5adccce709e96f2e08c0953445154cb1 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Tue, 28 Jun 2016 11:33:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=85=88=E5=8F=96env=E4=B8=AD?= =?UTF-8?q?=E7=9A=84wechat=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/wechats_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/wechats_controller.rb b/app/controllers/wechats_controller.rb index 4e0d42a45..4a79d6d93 100644 --- a/app/controllers/wechats_controller.rb +++ b/app/controllers/wechats_controller.rb @@ -3,7 +3,7 @@ class WechatsController < ActionController::Base wechat_responder include ApplicationHelper - ROOT_URL = "#{Setting.protocol}://#{Setting.host_name}" + ROOT_URL = ENV["wechat_url"] || "#{Setting.protocol}://#{Setting.host_name}" #ROOT_URL = "http://www.trustie.net" # default text responder when no other match on :text do |request, content|