简要描述:
- 查看商品
请求URL:
GET/plugin.yz-supply.admin.productAlbum.getDetailByShop
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|---|---|---|
album_id | int | true | 专辑id |
page | int | true | 页码 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"album": {
"id": 6,
"uniacid": 5,
"sid": 2,
"name": "阿斯顿撒多",
"describe": "的数据库个好看夹覆盖",
"covers": [
{
"src": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/2022413/1649832489v2-025c02403bde66c4d3e6ef237c7fb7e0_1440w.jpeg"
},
{
"src": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/2022413/1649832494v2-c057fce621e66b10ddc772423de85127_1440w.jpeg"
}
],
"is_share": 1,
"import_count": 0,
"browse_count": 0,
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:20",
"deleted_at": null,
"time_name": "07月31日",
"goods_count": 2,
"sales": 0,
"has_many_relation_tag": [
{
"id": 3,
"uniacid": 5,
"product_album_id": 6,
"tag_id": 5,
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:20",
"deleted_at": null,
"has_one_tag": {
"id": 5,
"uniacid": 5,
"sid": 2,
"name": "标签1",
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:20",
"deleted_at": null
}
},
{
"id": 4,
"uniacid": 5,
"product_album_id": 6,
"tag_id": 6,
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:20",
"deleted_at": null,
"has_one_tag": {
"id": 6,
"uniacid": 5,
"sid": 3,
"name": "标签3",
"created_at": "2022-07-31 16:35:20",
"updated_at": "2022-07-31 16:35:20",
"deleted_at": null
}
}
]
},
"list": {
"current_page": 1,
"data": [
{
"id": 807,
"uniacid": 5,
"brand_id": 0,
"type": 1,
"status": 0,
"display_order": 0,
"title": "商品测试",
"thumb": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202269/1654745836高夫洗面奶.png",
"thumb_url": "a:2:{i:0;s:91:\"https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202269/1654745839高夫洗面奶.png\";i:1;s:115:\"https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/2022613/1655113191v2-0d3c9c347a80718cee96eba60c37ba17_r.jpeg\";}",
"sku": "个",
"description": "",
"content": "",
"goods_sn": "",
"product_sn": "",
"market_price": "100.00",
"price": "100.00",
"cost_price": "100.00",
"stock": 555,
"reduce_stock_method": 0,
"show_sales": 0,
"real_sales": 0,
"weight": "0.00",
"has_option": 1,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2022-07-31 16:35:20",
"deleted_at": null,
"updated_at": "2022-07-31 16:35:20",
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 120,
"virtual_sales": 21,
"no_refund": 0,
"need_address": 0,
"type2": 1,
"old_id": null,
"volume": null,
"alias": "",
"status_name": "下架"
},
{
"id": 808,
"uniacid": 5,
"brand_id": 0,
"type": 1,
"status": 0,
"display_order": 0,
"title": "商品测试",
"thumb": "https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202269/1654745836高夫洗面奶.png",
"thumb_url": "a:1:{i:0;s:91:\"https://jhgyl-1309576924.cos.ap-guangzhou.myqcloud.com/202269/1654745839高夫洗面奶.png\";}",
"sku": "个",
"description": "",
"content": "",
"goods_sn": "",
"product_sn": "",
"market_price": "100.00",
"price": "100.00",
"cost_price": "100.00",
"stock": 555,
"reduce_stock_method": 0,
"show_sales": 0,
"real_sales": 0,
"weight": "0.00",
"has_option": 1,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2022-07-31 16:35:21",
"deleted_at": null,
"updated_at": "2022-07-31 16:35:21",
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 120,
"virtual_sales": 12,
"no_refund": 0,
"need_address": 0,
"type2": 1,
"old_id": null,
"volume": null,
"alias": "",
"status_name": "下架"
}
],
"first_page_url": "http://mdzz.com/admin/shop?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://mdzz.com/admin/shop?page=1",
"next_page_url": null,
"path": "http://mdzz.com/admin/shop",
"per_page": 15,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
album | arr | 专辑信息 |
album=>id | int | 专辑id |
album=>name | str | 专辑名称 |
album=>covers | arr | 专辑封面信息 |
album=>covers=>src | str | 专辑封面 |
album=>describe | str | 专辑描述 |
album=>has_many_relation_tag | arr | 标签信息 |
album=>has_many_relation_tag=>has_one_tag=>name | str | 标签名称 |
album=>time_name | str | 时间 |
album=>product_count | int | 商品数量 |
album=>sales | int | 已售数量 |
album=>browse_count | int | 访问数量 |
list=>data | arr | 商品信息 |
list=>data=>thumb_url | str | 商品图片 |
list=>data=>title | str | 商品名称 |
list=>data=>price | float | 现价 |
list=>data=>market_price | float | 原价 |
list=>data=>cost_price | float | 成本价 |