简要描述:

  • 新人奖-奖品列表

请求域名:

  • http://xx.com

请求URL:

GET:plugin.new-member-prize.frontend.controllers.reward-goods.index

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 16,
                "title": "多项目商品",
                "thumb": "https://43.142.236.174/static/upload/images/1/2026/07/8a87f80082052e2cb43902ee474048c9.jpg",
                "price": "10.00",
                "plugin_id": 113,
                "status_name": null,
                "store_projects": {
                    "project_select_mode": 1,
                    "buy_project_limit": 1,
                    "project_total": 2,
                    "project_select_tips": "请选择需要购买的项目(2选1)",
                    "projects": [
                        {
                            "goods_project_id": 2,
                            "goods_id": 16,
                            "project_id": 3,
                            "service_count": 10,
                            "buy_project_limit": 1,
                            "period": "365天",
                            "project_title": "项目1",
                            "thumb": "https://43.142.236.174/static/upload/images/1/2026/07/8a87f80082052e2cb43902ee474048c9.jpg",
                            "store_name": "hotel1",
                            "store_thumb": "https://43.142.236.174/static/upload/images/1/2026/07/8a87f80082052e2cb43902ee474048c9.jpg",
                            "store_business_hours_start": "0:00",
                            "store_business_hours_end": "23:59",
                            "store_distance": 2719.7,
                            "store_distance_unit": "km",
                            "store_full_address": "北京市 北京市 东城区 过去惹",
                            "store_longitude": "11",
                            "store_latitude": "22",
                            "hide_store": null
                        },
                        {
                            "goods_project_id": 5,
                            "goods_id": 16,
                            "project_id": 4,
                            "service_count": 10,
                            "buy_project_limit": 1,
                            "period": "365天",
                            "project_title": "项目2",
                            "thumb": "https://43.142.236.174/static/upload/images/1/2026/07/8a87f80082052e2cb43902ee474048c9.jpg",
                            "store_name": "hotel1",
                            "store_thumb": "https://43.142.236.174/static/upload/images/1/2026/07/8a87f80082052e2cb43902ee474048c9.jpg",
                            "store_business_hours_start": "0:00",
                            "store_business_hours_end": "23:59",
                            "store_distance": 2719.7,
                            "store_distance_unit": "km",
                            "store_full_address": "北京市 北京市 东城区 过去惹",
                            "store_longitude": "11",
                            "store_latitude": "22",
                            "hide_store": null
                        }
                    ]
                },
                "goods_log_id": 14,
                "option_title": "",
                "option_id": 0,
                "option_price": 0
            }
        ],
        "first_page_url": "https://43.142.236.174/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://43.142.236.174/addons/yun_shop/api.php?page=1",
        "links": [
            {
                "url": null,
                "label": "« 上一页",
                "active": false
            },
            {
                "url": "https://43.142.236.174/addons/yun_shop/api.php?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "下一页 »",
                "active": false
            }
        ],
        "next_page_url": null,
        "path": "https://43.142.236.174/addons/yun_shop/api.php",
        "per_page": 15,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
}

错误时返回:


返回参数说明:

参数名 类型 说明
title string 商品名称
id string 商品id
thumb string 商品图片
price string 商品价格
option_title string 规格名称
option_price string 规格价格
option_id string 规格id
goods_log_id string 奖品记录id 下单的时候要传
store_projects object 多项目商品信息,返回内容和需求二商品详情一致

备注:

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