From 35062aa87d589ff1ae58c740260d448716a50ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=B1=E5=91=B1=E5=91=B1?= Date: Thu, 24 Aug 2023 11:40:33 +0800 Subject: [PATCH] card_front_attachment fix --- app/views/admins/identity_verifications/edit.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/admins/identity_verifications/edit.html.erb b/app/views/admins/identity_verifications/edit.html.erb index 0a347c68d..99f9f02a9 100644 --- a/app/views/admins/identity_verifications/edit.html.erb +++ b/app/views/admins/identity_verifications/edit.html.erb @@ -62,7 +62,7 @@
<% if @identity_verification.card_front_attachment.present? %> - <%= image_tag("/api/attachments/#{@identity_verification.card_front_attachment}", width: 100, height: 100, class: 'preview-image auth-image', data: { toggle: 'tooltip', title: '点击预览' }) %> + <%= image_tag("/api/attachments/#{@identity_verification.card_front}", width: 100, height: 100, class: 'preview-image auth-image', data: { toggle: 'tooltip', title: '点击预览' }) %> <%else%>

图片无法展示,图片已丢失

<%end%> @@ -72,7 +72,7 @@
<% if @identity_verification.card_back_attachment.present? %> - <%= image_tag("/api/attachments/#{@identity_verification.card_back_attachment}", width: 100, height: 100, class: 'preview-image auth-image', data: { toggle: 'tooltip', title: '点击预览' }) %> + <%= image_tag("/api/attachments/#{@identity_verification.card_back}", width: 100, height: 100, class: 'preview-image auth-image', data: { toggle: 'tooltip', title: '点击预览' }) %> <%else%>

图片无法展示,图片已丢失

<%end%> @@ -82,7 +82,7 @@
<% if @identity_verification.hold_card_front_attachment.present? %> - <%= image_tag("/api/attachments/#{@identity_verification.hold_card_front_attachment}", width: 100, height: 100, class: 'preview-image auth-image', data: { toggle: 'tooltip', title: '点击预览' }) %> + <%= image_tag("/api/attachments/#{@identity_verification.hold_card_front}", width: 100, height: 100, class: 'preview-image auth-image', data: { toggle: 'tooltip', title: '点击预览' }) %> <%else%>

图片无法展示,图片已丢失

<%end%> @@ -92,7 +92,7 @@
<% if @identity_verification.hold_card_back_attachment.present? %> - <%= image_tag("/api/attachments/#{@identity_verification.hold_card_back_attachment}", width: 100, height: 100, class: 'preview-image auth-image', data: { toggle: 'tooltip', title: '点击预览' }) %> + <%= image_tag("/api/attachments/#{@identity_verification.hold_card_back}", width: 100, height: 100, class: 'preview-image auth-image', data: { toggle: 'tooltip', title: '点击预览' }) %> <%else%>

图片无法展示,图片已丢失

<%end%>