Commit dd93e300 by Ivan Lan

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

parent 6d6b515f
......@@ -283,7 +283,7 @@ module TalltyImportExport
data.map do |item|
url = item.dig('url')
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
end.compact.join("\n")
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