diff --git a/public/themes/website/1/zh/demo/product.html b/public/themes/website/1/zh/demo/product.html index bd341d7..0031eb8 100644 --- a/public/themes/website/1/zh/demo/product.html +++ b/public/themes/website/1/zh/demo/product.html @@ -39,7 +39,7 @@ $tag = $hc_content['tag'] ?? []; // 缩略图 - $thumbnail = $hc_content['thumbnail'] ?? []; + $thumbnail = (array)($hc_content['thumbnail'] ?? []); $thumbnail_id = $thumbnail['id'] ?? ''; $thumbnail_name = $thumbnail['name'] ?? ''; $thumbnail_url = $thumbnail['url'] ?? ''; @@ -68,7 +68,7 @@ $mc_update_time = $main_content['update_time'] ?? ''; // 资源图片 - $resource_pic = $main_content['resource_pic'] ?? []; + $resource_pic = (array)($main_content['resource_pic'] ?? []); $resource_pic_id = $resource_pic['id'] ?? ''; $resource_pic_name = $resource_pic['name'] ?? ''; $resource_pic_url = $resource_pic['url'] ?? ''; @@ -171,7 +171,7 @@
{volist name="pic_many_one" id="vo" key="key"}
- RA3产品图 + RA3产品图
{/volist} @@ -213,7 +213,7 @@ aria-selected="{if $key==1}true{else /}false{/if}" > - + {$vo.description} @@ -284,13 +284,14 @@
- RA3资料示意 + RA3资料示意

资料下载

    {volist name="resource_download" id="one_resource" key="key"} {php} + $downloadUrl = $one_resource['url'] ?? ''; $nameTmp = $download_names[$key-1][0] ?? ($one_resource['name'] ?? '文件-'.$key); $descTmp = $download_names[$key-1][1] ?? ('描述-'.$key); $dateTmp = $download_names[$key-1][2] ?? ('日期-'.$key); @@ -308,7 +309,7 @@