Commit b1b1286b by liyijie

feat: import_headers_result暂时做保护

parent b068fd27
...@@ -110,6 +110,7 @@ module TalltyImportExport ...@@ -110,6 +110,7 @@ module TalltyImportExport
true true
end end
# TODO: 这里,对于import_headers,后面还是不要传参数了
# 需要合并proc,前端没有办法把proc传过来 # 需要合并proc,前端没有办法把proc传过来
def import_headers_result def import_headers_result
import_header_hash = import_headers.to_h { |header| [header.with_indifferent_access[:key], header] }.with_indifferent_access import_header_hash = import_headers.to_h { |header| [header.with_indifferent_access[:key], header] }.with_indifferent_access
...@@ -120,6 +121,8 @@ module TalltyImportExport ...@@ -120,6 +121,8 @@ module TalltyImportExport
end end
header header
end end
rescue
@headers
end end
def import_options def import_options
......
module TalltyImportExport module TalltyImportExport
VERSION = "1.0.31" VERSION = "1.0.32"
end end
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