竞赛附件下载

dev_aliyun
cxt 5 years ago
parent ef05cf1f4a
commit 27d486540a

@ -5690,7 +5690,8 @@ end
def download_named_attachment_url_without_domain(id, filename, option={}) def download_named_attachment_url_without_domain(id, filename, option={})
attachment_id = (Attachment === id ? id.id : id) attachment_id = (Attachment === id ? id.id : id)
Setting.protocol + "://" + Setting.host_name + "/attachments/download/" + attachment_id.to_s + "/" + filename # Setting.protocol + "://" + Setting.host_name + "/attachments/download/" + attachment_id.to_s + "/" + filename
Setting.protocol + "://" + Setting.host_name + "/attachments/" + attachment_id.to_s
end end
def named_attachment_url_without_domain(id, filename, option={}) def named_attachment_url_without_domain(id, filename, option={})

Loading…
Cancel
Save