简要描述:

充值套餐商品

请求域名:

  • http://xx.com

请求路由:

route=plugin.water-machine.frontend.consumer.package-goods.index

返回示例:

正确时返回:

{
  "result": 1,
  "msg": "ok",
  "data": {
    "id": 288,
    "uniacid": 1,
    "brand_id": 1,
    "type": 2,
    "status": 1,
    "display_order": 0,
    "title": "饮水机绑定商品",
    "thumb": "http://localhost/static/upload/images/1/2022/05/f33c464c450b942c00cffcc8c004f973.png",
    "thumb_url": "a:0:{}",
    "sku": "个",
    "goods_sn": "",
    "product_sn": "",
    "market_price": "0.00",
    "price": "0.00",
    "cost_price": "0.00",
    "stock": 9999,
    "reduce_stock_method": 2,
    "show_sales": 1,
    "real_sales": 1,
    "weight": "0.00",
    "has_option": 1,
    "is_new": 1,
    "is_hot": 0,
    "is_discount": 0,
    "is_recommand": 0,
    "is_comment": 0,
    "is_deleted": 0,
    "created_at": "2023-02-20 09:02:26",
    "deleted_at": null,
    "updated_at": "2023-03-01 17:22:14",
    "comment_num": 0,
    "is_plugin": 0,
    "plugin_id": 0,
    "virtual_sales": 0,
    "no_refund": 0,
    "need_address": 1,
    "type2": 1,
    "old_id": null,
    "volume": "0.000",
    "goods_video": null,
    "alias": "饮水机绑定商品",
    "is_hide": 2,
    "min_price": "20.00",
    "max_price": "40.00",
    "hide_goods_sales": 0,
    "hide_goods_sales_alone": 0,
    "water_machine_package": [
      { "id": 54, "price": "10", "title": "买2送1", "paid_price": "10.00" },
      { "id": 55, "price": "11", "title": "买3送2", "paid_price": "20.00" },
      { "id": 56, "price": "20", "title": "买4送3", "paid_price": "30.00" }
    ],
    "vip_price": "0.00",
    "next_level_price": "0.00",
    "has_many_options": [
      {
        "id": 54,
        "uniacid": 1,
        "goods_id": 288,
        "title": "买2送1",
        "thumb": "",
        "product_price": "20.00",
        "market_price": "10.00",
        "cost_price": "10.00",
        "stock": 999,
        "weight": "0.00",
        "display_order": 0,
        "specs": "26",
        "skuId": "",
        "goods_sn": "",
        "product_sn": "",
        "virtual": 0,
        "red_price": "",
        "volume": "0.000"
      },
      {
        "id": 55,
        "uniacid": 1,
        "goods_id": 288,
        "title": "买3送2",
        "thumb": "",
        "product_price": "30.00",
        "market_price": "20.00",
        "cost_price": "10.00",
        "stock": 999,
        "weight": "0.00",
        "display_order": 1,
        "specs": "27",
        "skuId": "",
        "goods_sn": "",
        "product_sn": "",
        "virtual": 0,
        "red_price": "",
        "volume": "0.000"
      },
      {
        "id": 56,
        "uniacid": 1,
        "goods_id": 288,
        "title": "买4送3",
        "thumb": "",
        "product_price": "40.00",
        "market_price": "30.00",
        "cost_price": "10.00",
        "stock": 999,
        "weight": "0.00",
        "display_order": 2,
        "specs": "28",
        "skuId": "",
        "goods_sn": "",
        "product_sn": "",
        "virtual": 0,
        "red_price": "",
        "volume": "0.000"
      }
    ],
    "has_many_goods_discount": [
      {
        "id": 2302,
        "goods_id": 288,
        "level_discount_type": 1,
        "discount_method": 1,
        "level_id": 0,
        "discount_value": "",
        "created_at": "2023-03-01 17:22:14",
        "updated_at": "2023-03-01 17:22:14",
        "deleted_at": null
      },
      {
        "id": 2303,
        "goods_id": 288,
        "level_discount_type": 1,
        "discount_method": 1,
        "level_id": 1,
        "discount_value": "",
        "created_at": "2023-03-01 17:22:14",
        "updated_at": "2023-03-01 17:22:14",
        "deleted_at": null
      },
      {
        "id": 2304,
        "goods_id": 288,
        "level_discount_type": 1,
        "discount_method": 1,
        "level_id": 2,
        "discount_value": "",
        "created_at": "2023-03-01 17:22:14",
        "updated_at": "2023-03-01 17:22:14",
        "deleted_at": null
      },
      {
        "id": 2305,
        "goods_id": 288,
        "level_discount_type": 1,
        "discount_method": 1,
        "level_id": 4,
        "discount_value": "",
        "created_at": "2023-03-01 17:22:14",
        "updated_at": "2023-03-01 17:22:14",
        "deleted_at": null
      }
    ]
  }
}

返回参数说明:

参数名 类型 说明
data.thumb string 套餐图片
data.water_machine_package.id string 商品规格id
data.water_machine_package.price string 套餐实际充值的余额
data.water_machine_package.title string 套餐名称
data.water_machine_package.paid_price string 实际要支付的金额