过滤附件的api

dev_winse
SylorHuang 6 years ago
parent 9fd5946837
commit 31cae1194b

@ -258,7 +258,7 @@ module ApplicationHelper
end
def download_url attachment
attachment_path(attachment)
attachment_path(attachment).gsub("/api","")
end
# 耗时:天、小时、分、秒

@ -6,5 +6,5 @@ json.publish_time attachment.publish_time
json.quotes attachment.quotes_count
json.downloads_count attachment.downloads_count
json.created_on attachment.created_on
json.url attachment_path(attachment, type: 'history')
json.url attachment_path(attachment, type: 'history').gsub("/api","")
json.is_pdf attachment.is_history_pdf?

Loading…
Cancel
Save