From 0cce39ace24924968637db02c0117ade90d446d9 Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 21 Mar 2019 10:50:11 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gemfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 5e4be042..ce827d25 100644 --- a/Gemfile +++ b/Gemfile @@ -15,6 +15,8 @@ unless RUBY_PLATFORM =~ /w32/ gem 'rqrcode_png' gem 'roo-xls' gem 'newrelic_rpm' + gem 'seventeen_mon' + gem 'mobinfo' end gem 'certified' gem 'net-ssh', '2.9.1' @@ -22,8 +24,6 @@ unless RUBY_PLATFORM =~ /w32/ gem 'nokogiri' end -gem 'seventeen_mon' -gem 'mobinfo' gem 'simple_xlsx_reader' gem 'wechat',path: 'lib/wechat' gem 'grack', path:'lib/grack' From 27a913882d81cfc87722937a86cff5615ae4b71f Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 21 Mar 2019 10:56:31 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ec_courses_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/ec_courses_controller.rb b/app/controllers/ec_courses_controller.rb index f263369d..156c8d17 100644 --- a/app/controllers/ec_courses_controller.rb +++ b/app/controllers/ec_courses_controller.rb @@ -3,8 +3,8 @@ class EcCoursesController < ApplicationController layout 'base_ec' before_filter :find_ec_course, :except => [:create, :get_calculation_data, :sync_all_course_data] before_filter :find_year, :only => [:create, :get_calculation_data] - before_filter :require_login, :except => [:sync_all_course_data] - before_filter :ec_auth, :except => [:search_courses] + before_filter :require_login, :except => [:search_courses] + before_filter :ec_auth, :except => [:sync_all_course_data] skip_before_filter :verify_authenticity_token, :only => [:crud_targets, :crud_score_level, :sync_all_course_data, :search_courses, :correlation_course, :delete_course] From 31beeaaf6770099fd827ecbc565940b7fa837b17 Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 21 Mar 2019 11:02:07 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ec_courses_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/ec_courses_controller.rb b/app/controllers/ec_courses_controller.rb index 156c8d17..442a84ef 100644 --- a/app/controllers/ec_courses_controller.rb +++ b/app/controllers/ec_courses_controller.rb @@ -1,10 +1,10 @@ #encoding: utf-8 class EcCoursesController < ApplicationController layout 'base_ec' - before_filter :find_ec_course, :except => [:create, :get_calculation_data, :sync_all_course_data] + before_filter :find_ec_course, :except => [:create, :get_calculation_data, :sync_all_course_data, :search_courses] before_filter :find_year, :only => [:create, :get_calculation_data] before_filter :require_login, :except => [:search_courses] - before_filter :ec_auth, :except => [:sync_all_course_data] + before_filter :ec_auth, :except => [:sync_all_course_data, :search_courses] skip_before_filter :verify_authenticity_token, :only => [:crud_targets, :crud_score_level, :sync_all_course_data, :search_courses, :correlation_course, :delete_course] From d62f927bafbb002e6b968a0ce93234624ea54bdd Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 21 Mar 2019 11:08:35 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ec_courses_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/ec_courses_controller.rb b/app/controllers/ec_courses_controller.rb index 442a84ef..a81d6796 100644 --- a/app/controllers/ec_courses_controller.rb +++ b/app/controllers/ec_courses_controller.rb @@ -3,8 +3,8 @@ class EcCoursesController < ApplicationController layout 'base_ec' before_filter :find_ec_course, :except => [:create, :get_calculation_data, :sync_all_course_data, :search_courses] before_filter :find_year, :only => [:create, :get_calculation_data] - before_filter :require_login, :except => [:search_courses] - before_filter :ec_auth, :except => [:sync_all_course_data, :search_courses] + before_filter :require_login, :except => [:search_courses, :correlation_course] + before_filter :ec_auth, :except => [:sync_all_course_data, :search_courses, :correlation_course] skip_before_filter :verify_authenticity_token, :only => [:crud_targets, :crud_score_level, :sync_all_course_data, :search_courses, :correlation_course, :delete_course]