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|