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

This commit is contained in:
2023-11-22 11:17:22 +08:00
parent 6ae4aded65
commit 2ea41d0100
5 changed files with 25 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
json.id @attachment.id
json.id @attachment.uuid
json.title @attachment.title
json.filesize number_to_human_size(@attachment.filesize)
json.is_pdf @attachment.is_pdf?