ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 已解決 多文件 array_slice(): Argument #1 ($array) must be of type array, int given在內容頁面的錯誤 4 0
gongying(PHP技術) SVIP會員 OEM版權 2022-01-27 14:26:15 私信
迅睿CMS版本:4.5.4 #生成靜態

我的產品圖集是使用官方模塊改的多文件 見圖


image

但是在生成靜態html的時候 提示字段必須是數組 array_slice(): Argument #1 ($array) must be of type array, int given


在內容頁面的代碼是

<?php $thumb = array_slice($thumb, 0, 4);?>

<?php if ($thumb) { $key=0;foreach ($thumb as $c) { ?>

<div class="swiper-slide"><img src="{dr_thumb($c.file, 400, 400)}"></div>

<?php $key++;} } ?>

請問 怎么修改啊 ?


解決方案