From bd3da95b8b800f4a95fa9b2980ba56c63d9dcaba Mon Sep 17 00:00:00 2001 From: xiaodong Date: Thu, 10 Sep 2026 14:25:49 +0800 Subject: [PATCH] =?UTF-8?q?pdf=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/website/1/en/demo/download.html | 4 +++- public/themes/website/1/zh/demo/download.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/public/themes/website/1/en/demo/download.html b/public/themes/website/1/en/demo/download.html index 9812370..72cd9cc 100755 --- a/public/themes/website/1/en/demo/download.html +++ b/public/themes/website/1/en/demo/download.html @@ -119,7 +119,9 @@
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo" sort="sort desc"} {php} - $dl_file = !empty($vo['url']) ? $vo['url'] : ($vo['thumbnail']['url'] ?? ''); + // $dl_file = !empty($vo['url']) ? $vo['url'] : ($vo['thumbnail']['url'] ?? ''); + $pdf_resource_download = $vo['main_content']['resource_download'][0] ?? ''; + $dl_file = $pdf_resource_download; $has_dl = $dl_file !== ''; {/php}
diff --git a/public/themes/website/1/zh/demo/download.html b/public/themes/website/1/zh/demo/download.html index da4b199..72f4a02 100755 --- a/public/themes/website/1/zh/demo/download.html +++ b/public/themes/website/1/zh/demo/download.html @@ -119,7 +119,9 @@
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo" sort="sort desc"} {php} - $dl_file = !empty($vo['url']) ? $vo['url'] : ($vo['thumbnail']['url'] ?? ''); + // $dl_file = !empty($vo['url']) ? $vo['url'] : ($vo['thumbnail']['url'] ?? ''); + $pdf_resource_download = $vo['main_content']['resource_download'][0] ?? ''; + $dl_file = $pdf_resource_download; $has_dl = $dl_file !== ''; {/php}