fixed 解决安全问题访问附件,id改为uuid,关联pages功能修改

This commit is contained in:
2023-12-12 16:47:48 +08:00
parent de1266ba6c
commit 247c5a60b1

View File

@@ -34,18 +34,18 @@ class IdentityVerification < ApplicationRecord
end
def card_front_attachment
Attachment.where_id_or_uuid.first card_front
Attachment.where_id_or_uuid(card_front).first
end
def card_back_attachment
Attachment.where_id_or_uuid.first card_back
Attachment.where_id_or_uuid(card_back).first
end
def hold_card_front_attachment
Attachment.where_id_or_uuid.first hold_card_front
Attachment.where_id_or_uuid(hold_card_front).first
end
def hold_card_back_attachment
Attachment.where_id_or_uuid hold_card_back
Attachment.where_id_or_uuid(hold_card_back).first
end
end