简要描述:

  • 素材列表

请求域名:

  • http://xx.com

请求URL:

plugin.material-center.api.centerlist.detail

参数:

参数名 是否必须 类型 说明
id int 素材ID

返回示例:

正确时返回:

{
  "result": 1,
  "msg": "ok",
  "data": {
    "id": 2,
    "title": "123",
    "goods_id": 262,
    "content": "啊飒飒大苏打萨达萨达萨达大法师",
    "images": [
      "https://ysm-1251768088.cos.ap-guangzhou.myqcloud.com/images/25/2023/03/98f28360024d398a9a4332a70f4d2451.jpg"
    ],
    "is_show": 1,
    "share": 0,
    "created_at": "2023-03-06 10:27:04",
    "videos": {
      "video_url": "https://dev15.yunzmall.com/static/upload/videos/0/2021/01/68605a15a1a95e855858a6fed38830ef.mp4",
      "video_image": "https://ysm-1251768088.cos.ap-guangzhou.myqcloud.com/images/25/2023/03/e7110682273fcae016170c77c9dcc412.jpg"
    },
    "goods": {
      "id": 262,
      "uniacid": 25,
      "brand_id": 0,
      "type": 1,
      "status": 1,
      "display_order": 0,
      "title": "123",
      "thumb": "https://dev15.yunzmall.com/static/upload/images/25/2020/12/i5L4hCACP9ZIoz4paP9o9pprfpE1o4.jpg",
      "thumb_url": "",
      "sku": "件",
      "description": "",
      "content": "",
      "goods_sn": "",
      "product_sn": "",
      "market_price": "0.00",
      "price": "100.00",
      "cost_price": "0.00",
      "stock": 993,
      "reduce_stock_method": 0,
      "show_sales": 7,
      "real_sales": 7,
      "weight": "0.00",
      "has_option": 0,
      "is_new": 0,
      "is_hot": 0,
      "is_discount": 0,
      "is_recommand": 0,
      "is_comment": 0,
      "is_deleted": 0,
      "created_at": "2020-12-10 17:53:48",
      "deleted_at": null,
      "updated_at": "2022-11-11 15:17:57",
      "comment_num": 0,
      "is_plugin": 0,
      "plugin_id": 57,
      "virtual_sales": 111,
      "no_refund": 0,
      "need_address": 0,
      "type2": 1,
      "old_id": null,
      "volume": "0.000",
      "alias": "",
      "is_hide": 1,
      "min_price": "100.00",
      "max_price": "100.00",
      "hide_goods_sales": 0,
      "hide_goods_sales_alone": 0,
      "status_name": "上架"
    },
    "logo": "https://ysm-1251768088.cos.ap-guangzhou.myqcloud.com/images/25/2022/08/e3d906a37828141d449b59c18a3d5648.png",
    "set": {
      "title": "访问",
      "desc": "额温枪分为区分",
      "icon": ""
    }
  }
}

错误时返回:

  {
    "result": 0,
    "msg": "暂无数据",
    "data": ""
  }

返回参数说明:

参数名 类型 说明
id int 素材id
goods_id int 商品id
title string 素材标题
images string 素材图片信息
name string 商城名称
logo string 商城logo
created_at string 素材添加时间
goods[id] int 商品ID
goods[title] string 商品标题
goods[thumb] string 商品图片
goods[sku] string 商品单位
goods[price] float 商品价格
set[title] string 分享标题
set[icon] string 分享图片
set[desc] string 分享内容

备注:

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