附件播放问题

dev_video
daiao 5 years ago
parent 9d30b7f6f6
commit 3e58bef366

@ -15,3 +15,4 @@ json.created_on attachment.created_on
json.content_type attachment.content_type
json.is_pdf attachment.is_pdf?
json.url attachment.is_pdf? ? download_url(attachment,disposition:"inline") : download_url(attachment)
json.play_url absolute_path(local_path(attachment))

Loading…
Cancel
Save