mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
fixed 解决安全问题访问附件,id改为uuid,关联pages功能修改
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user