Browse Source

pdf下载链接debug

master
xiaodong 1 week ago
parent
commit
72976e2718
  1. 2
      public/themes/website/1/en/demo/download.html
  2. 4
      public/themes/website/1/zh/demo/download.html

2
public/themes/website/1/en/demo/download.html

@ -121,7 +121,7 @@
{php} {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] ?? ''; $pdf_resource_download = $vo['main_content']['resource_download'][0] ?? '';
$dl_file = $pdf_resource_download;
$dl_file = $pdf_resource_download['url'] ?? '';
$has_dl = $dl_file !== ''; $has_dl = $dl_file !== '';
{/php} {/php}
<div class="d-item"> <div class="d-item">

4
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"} {hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo" sort="sort desc"}
{php} {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;
$pdf_resource_download = $vo['main_content']['resource_download'][0] ?? '';
$dl_file = $pdf_resource_download['url'] ?? '';
$has_dl = $dl_file !== ''; $has_dl = $dl_file !== '';
{/php} {/php}
<div class="d-item"> <div class="d-item">

Loading…
Cancel
Save