优先取env中的wechat url

This commit is contained in:
guange 2016-06-28 11:33:54 +08:00
parent 57cdc1d5ec
commit 436de8ce5a
1 changed files with 1 additions and 1 deletions

View File

@ -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|