简要描述:

  • 购买指定商品, 与商城接口返回数据一样.goods.goods.search-goods

请求URL:

GET/plugin.love-speed-pool.frontend.goods.getList

返回示例:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 622,
                "thumb": "images/5/2020/07/l4J4RI4C2ONjlCc7zojn8HhhCc24lc.png",
                "total_sales": 0,
                "market_price": "2299.00",
                "price": "2299.00",
                "cost_price": "20.00",
                "title": "小米K30i  5G双模手机   6+128G ",
                "goods_id": 622,
                "has_option": 0,
                "status_name": null,
                "has_many_options": []
            },
            {
                "id": 621,
                "thumb": "images/5/2020/07/GfMpJFjZm3RWmwTzmwhwWprErrx3Bh.png",
                "total_sales": 0,
                "market_price": "3999.00",
                "price": "3999.00",
                "cost_price": "20.00",
                "title": "小米10  105g手机骁龙8651亿像素8+128G",
                "goods_id": 621,
                "has_option": 0,
                "status_name": null,
                "has_many_options": []
            }
        ],
        "first_page_url": "http://mdzz.com/admin/shop?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://mdzz.com/admin/shop?page=1",
        "next_page_url": null,
        "path": "http://mdzz.com/admin/shop",
        "per_page": 20,
        "prev_page_url": null,
        "to": 3,
        "total": 3,
        "goods_template": {
            "names": "01",
            "type": "goodsList"
        }
    }
}

返回参数说明: