|
|
|
@ -25,6 +25,7 @@ class ShixunsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
before_action :special_allowed, only: [:send_to_course, :search_user_courses]
|
|
|
|
|
before_action :shixun_marker, only: [:new, :create]
|
|
|
|
|
before_action :validate_wachat_support, only: [:shixun_exec]
|
|
|
|
|
skip_before_action :check_sign, only: [:download_file]
|
|
|
|
|
|
|
|
|
|
## 获取课程列表
|
|
|
|
@ -1185,4 +1186,8 @@ private
|
|
|
|
|
md5.hexdigest
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def validate_wachat_support
|
|
|
|
|
tip_exception(-2, "..") if (params[:wechat].present? && !@shixun.is_wechat_support?)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|