From 1727a4f4d02e429475608e60f142a63bc24127bc Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期一, 23 十月 2023 10:07:34 +0800
Subject: [PATCH] 近期修改
---
force-app/main/default/classes/BidAnnounceIframeController.cls | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/classes/BidAnnounceIframeController.cls b/force-app/main/default/classes/BidAnnounceIframeController.cls
index 68b19cb..e4e4a1c 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];
}
-
if (bid.Web_URL__c != null) {
// 涓爣閫氱煡涔RL鏇存柊鏃堕棿銆�銇ㄣ��鏈�鏂癆ttachment銇檪闁撱仺姣旇純銆佹柊銇椼亜銈傘伄銈掗仼鐢�
if (doc != null) {
+ ContentVersion version = [select Id from ContentVersion where ContentDocumentId =: doc.Id];
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,8 @@
} else {
// Attachment銈掗仼鐢�
if (doc != null) {
- iframe = '/lightning/r/ContentDocument/' + doc.Id + '/view';
+ ContentVersion version = [select Id from ContentVersion where ContentDocumentId =: doc.Id];
+ iframe = '/sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&versionId='+ version.Id;
}
}
}
--
Gitblit v1.9.1