fixed 解决安全问题访问附件,id改为uuid

This commit is contained in:
2023-12-12 14:31:21 +08:00
parent 0cb38bce4f
commit d74901cffa
8 changed files with 82 additions and 49 deletions

View File

@@ -299,7 +299,7 @@ module ApplicationHelper
end
def download_url attachment,options={}
attachment_path(attachment,options)
attachment&.uuid.present? ? attachment_path(attachment.uuid,options) : attachment_path(attachment,options)
end
# 耗时:天、小时、分、秒