导出调试

dev_local
cxt 6 years ago
parent 4708e150ba
commit d522ca2eb2

@ -201,7 +201,10 @@ module ZipService
# file_name = "#{homework.course_id}-#{homework.name}-#{student_work.user.user_extensions.student_id}-#{student_work.user.show_real_name}" + ".pdf" # file_name = "#{homework.course_id}-#{homework.name}-#{student_work.user.user_extensions.student_id}-#{student_work.user.show_real_name}" + ".pdf"
# file_name = "#{Time.now.strftime("%Y%m%d%H%M%S").to_s}-#{homework.course_id}-#{homework.id}-#{student_work.user.user_extensions.student_id}" + ".pdf" # file_name = "#{Time.now.strftime("%Y%m%d%H%M%S").to_s}-#{homework.course_id}-#{homework.id}-#{student_work.user.user_extensions.student_id}" + ".pdf"
file_name.gsub!(" ", "-") file_name.gsub!(" ", "-")
Rails.logger.info("######################before_dispos_file_name: #{file_name}")
file_name = filename_for_content_disposition(file_name) file_name = filename_for_content_disposition(file_name)
Rails.logger.info("######################after_dispos_file_name: #{file_name}")
kit.to_file("#{OUTPUT_FOLDER}/#{file_name}") kit.to_file("#{OUTPUT_FOLDER}/#{file_name}")
out_file = "#{OUTPUT_FOLDER}/#{file_name}" out_file = "#{OUTPUT_FOLDER}/#{file_name}"
out_file out_file

Loading…
Cancel
Save