Browse Source

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

pull/347/head
xxq250 2 years ago
parent
commit
247c5a60b1
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      app/models/identity_verification.rb

+ 4
- 4
app/models/identity_verification.rb 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

Loading…
Cancel
Save