Commit e38111ce by Ivan Lan

fix: 恢复测试连接

parent 9a8394c5
...@@ -62,8 +62,8 @@ module TalltyImportExport ...@@ -62,8 +62,8 @@ module TalltyImportExport
export_workbook workbook, records, **options export_workbook workbook, records, **options
end end
# file_path = File.join(Rails.root, 'public', 'export') file_path = File.join(Rails.root, 'public', 'export')
file_path = File.join('/Users/mushu/', 'export') # file_path = File.join('/Users/mushu/', 'export')
FileUtils.mkdir_p(file_path) unless Dir.exist?(file_path) FileUtils.mkdir_p(file_path) unless Dir.exist?(file_path)
file_name = "#{Time.now.strftime('%Y%m%d%H%M%S')}#{@filename}.xlsx" file_name = "#{Time.now.strftime('%Y%m%d%H%M%S')}#{@filename}.xlsx"
file_path_with_name = File.join(file_path, file_name) file_path_with_name = File.join(file_path, file_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment