From fc719acffc75b91665ea5882e4c7b8f6de56ad80 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 22 Apr 2019 18:22:36 +0800 Subject: [PATCH] 1 --- app/controllers/application_controller.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3d2960e7..91d479eb 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -34,6 +34,7 @@ class ApplicationController < ActionController::Base class_attribute :accept_rss_auth_actions class_attribute :model_object + before_filter :update_system # skip_before_filter :verify_authenticity_token, @@ -1113,4 +1114,10 @@ class ApplicationController < ActionController::Base end true end + + def update_system + redirect_to "https://www.educoder.net/update.html" if Time.now > Time.new(2019, 4, 23) && + Time.now < Time.new(2019, 4, 23, 2) + end + end