简要描述:

-付费文档-商品列表

请求域名:

  • http://xx.com

请求URL:

plugin.paid-file.api.goods.search-goods

请求参数说明:

参数名 类型 是否必需 说明
order_field string 排序字段 可选值 price 价格 show_sales 销量 recommand综合推荐
order_by string 排序方向 desc 降序 asc 升序
search object 搜索对象
search.keyword string 搜索关键词
search.category int 分类id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "has_option": 0,
                "id": 786,
                "thumb": "http://119.91.205.224/static/upload/images/15/2023/03/2a64d3c4cfdee8d08e208f97b0c70d7e.png",
                "total_sales": 999,
                "price": "11.00",
                "min_price": "11.00",
                "max_price": "11.00",
                "title": "3",
                "status_name": null
            },
            {
                "has_option": 0,
                "id": 788,
                "thumb": "http://119.91.205.224/static/upload/images/15/2023/03/2a64d3c4cfdee8d08e208f97b0c70d7e.png",
                "total_sales": 1099,
                "price": "11.00",
                "min_price": "11.00",
                "max_price": "11.00",
                "title": "1",
                "status_name": null
            },
            {
                "has_option": 0,
                "id": 787,
                "thumb": "http://119.91.205.224/static/upload/images/15/2023/03/2a64d3c4cfdee8d08e208f97b0c70d7e.png",
                "total_sales": 999,
                "price": "11.00",
                "min_price": "11.00",
                "max_price": "11.00",
                "title": "2",
                "status_name": null
            }
        ],
        "first_page_url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://119.91.205.224//addons/yun_shop/api.php?page=1",
        "next_page_url": null,
        "path": "http://119.91.205.224//addons/yun_shop/api.php",
        "per_page": 20,
        "prev_page_url": null,
        "to": 3,
        "total": 3
    }
}

错误时返回:

{
    "result": 0,
    "msg": "请登录",
    "data": []
}

返回参数说明:

参数名 类型 说明
id id 商品id
title string 商品标题
thumb string 商品图片
price double 商品价格