简要描述:

家用水机-商品列表 新增两个参数 其他和商品列表goods.goods.search-goods 这个API一模一样包括返回

请求域名:

  • http://xx.com

请求路由:

GET/&route=plugin.yz-supply-home-water-machin.frontend.goods.goodsSearch.searchGoods

请求参数说明:

参数名 类型 是否必需 说明
goods_type int 1设备商品,2滤芯 3续费
device_type_id int 设备类型 设备类型API获取

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "has_option": 1,
                "stock": 984,
                "id": 283,
                "thumb": "https://yunzhong.gz.cn/uploads/file/bc2b3f39b2f85ff1e44249b2744b1412_20241204154910.jpg",
                "goods_id": 283,
                "plugin_id": 210,
                "total_sales": 12,
                "market_price": "1515.00",
                "price": "3800.00",
                "min_price": "1515.00",
                "max_price": "1515.00",
                "cost_price": "1515.00",
                "title": "华为电视",
                "label_list": [],
                "vip_price": "1515.00",
                "vip_next_price": 0,
                "vip_level_status": {
                    "status": 0,
                    "word": "",
                    "tips": ""
                },
                "price_level": 1,
                "is_open_micro": 2,
                "goods_points": "",
                "status_name": null,
                "has_many_options": [
                    {
                        "goods_id": 283,
                        "product_price": "1515.00",
                        "market_price": "1515.00",
                        "stock": 984,
                        "cost_price": "1515.00"
                    }
                ],
                "has_many_goods_discount": []
            }
        ],
        "first_page_url": "http://shop/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://shop/addons/yun_shop/api.php?page=1",
        "links": [
            {
                "url": null,
                "label": "« 上一页",
                "active": false
            },
            {
                "url": "http://shop/addons/yun_shop/api.php?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "下一页 »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "http://shop/addons/yun_shop/api.php",
        "per_page": 20,
        "prev_page_url": null,
        "to": 1,
        "total": 1,
        "goods_template": {
            "names": "01",
            "type": "goodsList"
        },
        "goods_style_set": null
    }
}

返回参数说明:

参数名 类型 说明