diff --git a/app/services/zip_service.rb b/app/services/zip_service.rb index b798e111..4d381e76 100755 --- a/app/services/zip_service.rb +++ b/app/services/zip_service.rb @@ -188,9 +188,11 @@ module ZipService # file_name = "#{exercise.course_id}-#{exercise.exercise_name}-#{exercise_user.user.user_extensions.student_id}-#{exercise_user.user.show_real_name}" + ".pdf" # file_name = "#{Time.now.strftime("%Y%m%d%H%M%S").to_s}-#{exercise.course_id}-#{exercise.id}-#{exercise_user.user.user_extensions.student_id}" + ".pdf" file_name.gsub!(" ", "-") + Rails.logger.info("###################file_name: #{file_name}") kit.to_file("#{OUTPUT_FOLDER}/#{file_name}") out_file = "#{OUTPUT_FOLDER}/#{file_name}" out_file + Rails.logger.info("#################out_file_file_name: #{out_file}") end def export_user_shixun_work homework, student_work, file_name