|
|
@ -38,6 +38,12 @@ class TrainingsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
def enroll
|
|
|
|
def enroll
|
|
|
|
@training = current_training || Training.new
|
|
|
|
@training = current_training || Training.new
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if @training && @training.pay?
|
|
|
|
|
|
|
|
redirect_to result_training_path(id: @tag_id)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
Rails.logger.info("##########training_type:#{@training_type}")
|
|
|
|
Rails.logger.info("##########training_type:#{@training_type}")
|
|
|
|
@training_title = @training_type == 3 ? "信息技术新工科产学研联盟师资培训班" : "工程教育认证"
|
|
|
|
@training_title = @training_type == 3 ? "信息技术新工科产学研联盟师资培训班" : "工程教育认证"
|
|
|
|
Rails.logger.info("##########training_title:#{@training_title}")
|
|
|
|
Rails.logger.info("##########training_title:#{@training_title}")
|
|
|
|