From e53fdfdd78538a21cddd45b9d3faa1a7e9e37a0a Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期五, 21 七月 2023 13:36:24 +0800
Subject: [PATCH] 修改附件

---
 force-app/main/default/classes/BidAnnounceIframeController.cls |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/classes/BidAnnounceIframeController.cls b/force-app/main/default/classes/BidAnnounceIframeController.cls
index 68b19cb..6f2b673 100644
--- a/force-app/main/default/classes/BidAnnounceIframeController.cls
+++ b/force-app/main/default/classes/BidAnnounceIframeController.cls
@@ -20,12 +20,12 @@
         if (docList.size() > 0) {
             doc = docList[0];
         }
-        
+        ContentVersion version = [select Id from ContentVersion where ContentDocumentId =: doc.Id];
         if (bid.Web_URL__c != null) {
             // 涓爣閫氱煡涔RL鏇存柊鏃堕棿銆�銇ㄣ��鏈�鏂癆ttachment銇檪闁撱仺姣旇純銆佹柊銇椼亜銈傘伄銈掗仼鐢�
             if (doc != null) {
                 if (bid.Web_URL_ModifiedDate__c < doc.ContentModifiedDate) {
-                    iframe = '/lightning/r/ContentDocument/' + doc.Id + '/view';
+                    iframe = '/sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&versionId='+ version.Id;
                 } else {
                     iframe = bid.Web_URL__c;
                 }
@@ -37,7 +37,7 @@
         } else {
             // Attachment銈掗仼鐢�
             if (doc != null) {
-                iframe = '/lightning/r/ContentDocument/' + doc.Id + '/view';
+                iframe = '/sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&versionId='+ version.Id;
             }
         }
     }

--
Gitblit v1.9.1