Commit 9a33c7e2 by Ivan Lan

fix: 错误取值

parent 27c3a905
......@@ -159,7 +159,7 @@ module TalltyImportExport
elsif k_arr.size > 1
# hash设置
attr = k_arr.first
val = { k_arr[1..-1].join('.') => v }.to_nested_hash
val = { k_arr[1..-1].join('.') => val }.to_nested_hash
h[attr.to_sym] ||= {}
h[attr.to_sym].deep_merge! val
else
......@@ -172,7 +172,7 @@ module TalltyImportExport
case header[:attr_type].to_s
when 'file'
if val.is_a?(String)
val = val.split("\n").map do |url|
val.split("\n").map do |url|
params = url.include?('?') ? CGI::parse(url.split('?').last) : {}
{
url: url,
......
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