wechat开启挑战问题

dev_jupyter
daiao 5 years ago
parent 4d4f6bc9b6
commit 03f331f878

@ -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

Loading…
Cancel
Save