From b3a1ddd00fafd510b9d8601ab3a5d1b52d5c501a Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 22 Jun 2021 14:24:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=9F=9F=E5=90=8D=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/trainings_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/trainings_controller.rb b/app/controllers/trainings_controller.rb index f041e958..e5ef1529 100644 --- a/app/controllers/trainings_controller.rb +++ b/app/controllers/trainings_controller.rb @@ -6,7 +6,7 @@ class TrainingsController < ApplicationController skip_before_filter :check_if_login_required skip_before_filter :verify_signature, except: [:auth, :auth_callback, :pay_callback] - ROOT_URL = ENV["wechat_url"] || "#{Setting.protocol}://engineer.educoder.net" + ROOT_URL = ENV["wechat_url"] || "#{Setting.protocol}://#{Setting.host_name}" before_filter :authenticate, except: [:auth, :auth_callback, :pay_callback]