From 72976e2718c1d3aa86b7d86b4ed6fbf452babe47 Mon Sep 17 00:00:00 2001 From: xiaodong Date: Thu, 10 Sep 2026 14:33:27 +0800 Subject: [PATCH] =?UTF-8?q?pdf=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/themes/website/1/en/demo/download.html | 2 +- public/themes/website/1/zh/demo/download.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/themes/website/1/en/demo/download.html b/public/themes/website/1/en/demo/download.html index 72cd9cc..929bc52 100755 --- a/public/themes/website/1/en/demo/download.html +++ b/public/themes/website/1/en/demo/download.html @@ -121,7 +121,7 @@ {php} // $dl_file = !empty($vo['url']) ? $vo['url'] : ($vo['thumbnail']['url'] ?? ''); $pdf_resource_download = $vo['main_content']['resource_download'][0] ?? ''; - $dl_file = $pdf_resource_download; + $dl_file = $pdf_resource_download['url'] ?? ''; $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 860308b..5fb634a 100755 --- a/public/themes/website/1/zh/demo/download.html +++ b/public/themes/website/1/zh/demo/download.html @@ -120,8 +120,8 @@ {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'] ?? ''); - // $pdf_resource_download = $vo['main_content']['resource_download'][0] ?? ''; - // $dl_file = $pdf_resource_download; + $pdf_resource_download = $vo['main_content']['resource_download'][0] ?? ''; + $dl_file = $pdf_resource_download['url'] ?? ''; $has_dl = $dl_file !== ''; {/php}