Commit e314e306 by liyijie

fix: 修复array的处理问题

parent 011eb580
......@@ -207,7 +207,7 @@ module TalltyImportExport
def try_chain record, arr
arr.reduce(record) do |r, m|
if r.is_a?(Array)
r.try(:[], m) || r.try(:[], m.to_i) || r.try(m)
r.try(m) || r.try(:[], m.to_i)
else
r.try(:[], m) || r.try(:[], m.to_sym) || r.try(m)
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