quanwei
2025-12-12 b8961f178740f99ce54cfcbfd88235eaf8b79872
admin/app/api/model/page/Page.php
@@ -119,6 +119,8 @@
            $data[] = [
                'product_id' => $product['product_id'],
                'product_name' => $product['product_name'],
                'cart' => $product['cart'],
                'product_sku' => $product['product_sku'],
                'selling_point' => $product['selling_point'],
                'image' => $product['image'][0]['file_path'],
                'product_image' => $product['image'][0]['file_path'],
@@ -147,7 +149,7 @@
    {
        // 获取文章数据
        $model = new Article;
        $articleList = $model->getList($item['params']['auto']['category'], $item['params']['auto']['showNum']);
        $articleList = $model->getList($item['params']['auto']['category'], $item['params']['auto']['showNum'],0);
        return $articleList->isEmpty() ? [] : $articleList->toArray()['data'];
    }
@@ -158,7 +160,7 @@
    {
        // 获取头条数据
        $model = new Article;
        $articleList = $model->getList($item['params']['auto']['category'], $item['params']['auto']['showNum']);
        $articleList = $model->getList($item['params']['auto']['category'], $item['params']['auto']['showNum'],0);
        return $articleList->isEmpty() ? [] : $articleList->toArray()['data'];
    }