Commit dd93e300 by Ivan Lan

fix: 导出文件时, 支持 fileType 代替 mimeType 用以支持 oppo

parent 6d6b515f
...@@ -283,7 +283,7 @@ module TalltyImportExport ...@@ -283,7 +283,7 @@ module TalltyImportExport
data.map do |item| data.map do |item|
url = item.dig('url') url = item.dig('url')
url.present? ? url.present? ?
"#{url}?fileName=#{URI.encode_www_form_component(item.dig('fileName'))}&fileSize=#{URI.encode_www_form_component(item.dig('fileSize'))}&mimeType=#{URI.encode_www_form_component(item.dig('mimeType'))}" : "#{url}?fileName=#{URI.encode_www_form_component(item.dig('fileName'))}&fileSize=#{URI.encode_www_form_component(item.dig('fileSize'))}&mimeType=#{URI.encode_www_form_component(item.dig('mimeType') || item.dig('fileType'))}" :
nil nil
end.compact.join("\n") end.compact.join("\n")
else else
......
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