dev_course
SylorHuang 5 years ago
parent b70179d967
commit cedb27368e

@ -21,7 +21,10 @@ class ZipsController < ApplicationController
file_name = filename_for_content_disposition(exercises.filename)
send_file exercises.ex_zip, filename: file_name, type: 'application/zip'
Rails.logger.info("################___________file_name________________###########{file_name}")
Rails.logger.info("################___________exercises.filename________________###########{exercises.filename}")
send_file exercises.ex_zip, filename: file_name.encode(Encoding.default_external, 'gb2312'), type: 'application/zip'
rescue Exception => e
normal_status(-1, e.message)
end

Loading…
Cancel
Save