简要描述:

  • 开品实验室--开品列表

请求域名:

  • http://xx.com

请求URL:

POST/plugin.kaipin-laboratory.frontend.product-plaza.get-product-list

参数:

参数名 是否必须 类型 说明
name string 开品名称
category_id int 分类id
status int 状态, 0 待开品,1 已开品,2 出品种,3已完成, -1 开品失败

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 2,
                "name": "as2",
                "main_images": "http://www.shop777.com/static/upload/images/1/2022/12/1cf39f1438bce3a79d11c881b46b7c6f.gif",
                "price": "355.00",
                "cycle": 34,
                "total_amount": 9999,
                "main_images_url":[
"http://www.shop777.com/static/upload/images/1/2024/04/a58ac15c1a88989af02654b68d1568d4.jpg",
            "http://www.shop777.com/static/upload/images/1/2024/04/4d1d15e21ce57907f701b37d1d0bb46b.gif",
            "http://www.shop777.com/static/upload/newimage/1bf039266981330e8563577da5926b6f.jpg",
            "http://www.shop777.com/static/upload/images/1/2024/01/0b20441de360c4e590b26e50eed1dc01.jpg",
            "http://www.shop777.com/static/upload/images/1/2024/01/241fed586ea860e69064ce029009144c.jpg",
            "http://www.shop777.com/static/upload/images/1/2024/01/7ffd8413e76ef66b13a7b1f73e1144b5.gif",
            "http://www.shop777.com/static/upload/images/1/2024/01/7e0110b949dd53e631493858ef224b8c.jpg",
            "http://www.shop777.com/static/upload/images/1/2023/11/e91c1d2ca453e1c2179c16f3326c830f.jpg"
        ],
                "qr_images_url": "",
                "number_applicants": 0,
                "total_price": 0,
                "status_name": null,
                "has_many_product_log": []
            },
            {
                "id": 1,
                "name": "戴拿",
                "main_images": "http://www.shop777.com/static/upload/images/1/2024/04/a58ac15c1a88989af02654b68d1568d4.jpg",
                "price": "800.00",
                "cycle": 30,
                "total_amount": 1000,
                "main_images_url": "http://www.shop777.com/static/upload/images/1/2024/04/a58ac15c1a88989af02654b68d1568d4.jpg",
                "qr_images_url": "",
                "number_applicants": 0,
                "total_price": 0,
                "status_name": null,
                "has_many_product_log": [
                    {
                        "id": 1,
                        "uniacid": 1,
                        "member_id": 1,
                        "product_id": 1,
                        "number": 1000,
                        "margin": "500.00",
                        "margin_status": 1,
                        "status": -1,
                        "remark": "asdsad",
                        "created_at": null,
                        "deleted_at": null,
                        "updated_at": "2024-06-18 11:48:52",
                        "status_name": "已取消",
                        "margin_status_name": "已缴纳"
                    }
                ]
            }
        ],
        "first_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
        "links": [
            {
                "url": null,
                "label": "« 上一页",
                "active": false
            },
            {
                "url": "http://www.shop777.com/addons/yun_shop/api.php?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "下一页 »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "http://www.shop777.com/addons/yun_shop/api.php",
        "per_page": 15,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    }
}

错误时返回:


返回参数说明:

参数名 类型 说明
id int 开品id
name string 开品名称
main_images_url array 主图数组
price string 开品价格
qr_images_url string 二维码图片
total_amount int 开品总量
cycle int 开品周期
number_applicants int 报名人数
total_price sring 保证金数量

备注:

  • 更多返回错误代码请看首页的错误代码描述