|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
class ShixunsController < ApplicationController
|
|
|
|
|
# before_action :require_login, except: [:download_file, :index, :menus]
|
|
|
|
|
# before_action :check_auth, except: [:download_file, :index]
|
|
|
|
|
before_action :check_auth, except: [:download_file, :index]
|
|
|
|
|
|
|
|
|
|
before_action :find_shixun, except: [:index, :new, :create, :menus, :get_recommend_shixuns, :propaedeutics,
|
|
|
|
|
:departments, :apply_shixun_mirror, :get_mirror_script, :download_file]
|
|
|
|
@ -710,7 +710,6 @@ private
|
|
|
|
|
|
|
|
|
|
def find_shixun
|
|
|
|
|
@shixun = Shixun.find_by_identifier(params[:identifier])
|
|
|
|
|
shixun = Shixun.where(identifier: params[:identifier]).first
|
|
|
|
|
if @shixun.blank?
|
|
|
|
|
normal_status(404, "...")
|
|
|
|
|
return
|
|
|
|
|