Commit 9a2e7e6f by liyijie

fix: 修复false时候导出为空的问题

parent bde9e968
......@@ -211,15 +211,14 @@ module TalltyImportExport
if r.is_a?(Array)
r.try(m) || r.try(:[], m.to_i)
else
begin
r.try(:[], m)
rescue StandardError
nil
end || begin
r.try(:[], m.to_sym)
rescue StandardError
nil
end || r.try(m)
data = r.try(:[], m) rescue nil
if data.nil?
data = r.try(:[], m.to_sym) rescue nil
end
if data.nil?
data = r.try(m) rescue nil
end
data
end
end
end
......
module TalltyImportExport
VERSION = '1.1.3'
VERSION = '1.1.5'
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