简要描述:
- 供应链-知识库-商品详情返回格式 (通用商品详情API)
请求URL:
参数:
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"customer_service": {
"cservice": "https://tb.53kf.com/code/wx/2a0c3febab48b2254457e340dd490a7f5/1"
},
"plugin": {
"love_shoppin_gift": "",
"project_template": {
"num": 1,
"list": [
{
"id": 1,
"title": "111",
"created_at": null,
"release_time": null,
"knowledge_base_id": 2
}
]
}
},
"goods_type": "goods",
"get_goods": {
"id": 3670,
"uniacid": 5,
"brand_id": 0,
"type": 1,
"status": 1,
"display_order": 0,
"title": "测试商品",
"thumb": "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/2022818/1660808467yz_supply.png",
"thumb_url": [
"https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/2022818/1660808469yz_supply.png"
],
"sku": "个",
"description": "",
"content": "",
"goods_sn": "",
"product_sn": "",
"market_price": "111.00",
"price": "20.00",
"stock": 10000,
"show_sales": 0,
"weight": "0.00",
"has_option": 1,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 120,
"virtual_sales": 0,
"no_refund": 0,
"need_address": 0,
"type2": 1,
"old_id": null,
"volume": null,
"alias": "",
"is_hide": 1,
"vip_price_show": "20.00",
"is_added": "2",
"show_push": [],
"get_comment": [],
"favorable_rate": "100%",
"min_price": "20.00",
"max_price": "20.00",
"goods_video": "",
"video_image": "",
"show_stock": 0,
"is_member_enter": 1,
"detail_show": 0,
"is_month_sales": 0,
"is_price_desc": 0,
"price_desc_title": "价格说明",
"explain": "",
"coupon": null,
"spec_info": [],
"status_name": "上架",
"has_many_params": [],
"has_many_specs": [
{
"id": 5178,
"goods_id": 3670,
"title": "默认",
"description": null,
"specitem": [
{
"id": 5772,
"title": "默认",
"specid": 5178,
"thumb": ""
}
]
}
],
"has_many_options": [
{
"id": 4184,
"goods_id": 3670,
"title": "默认",
"thumb": "",
"product_price": "20.00",
"cost_price": "50.00",
"market_price": "111.00",
"stock": 0,
"specs": "5772",
"weight": "0.00",
"points": "",
"goods": {
"id": 3670,
"uniacid": 5,
"brand_id": 0,
"type": 1,
"status": 1,
"display_order": 0,
"title": "测试商品",
"thumb": "https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/2022818/1660808467yz_supply.png",
"thumb_url": "a:1:{i:0;s:89:\"https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/2022818/1660808469yz_supply.png\";}",
"sku": "个",
"goods_sn": "",
"product_sn": "",
"market_price": "111.00",
"price": "20.00",
"cost_price": "50.00",
"stock": 10000,
"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-08-24 15:37:52",
"deleted_at": null,
"updated_at": "2022-08-26 10:33:02",
"comment_num": 0,
"is_plugin": 0,
"plugin_id": 120,
"virtual_sales": 0,
"no_refund": 0,
"need_address": 0,
"type2": 1,
"old_id": null,
"volume": null,
"alias": "",
"is_hide": 1,
"vip_price": "20.00",
"next_level_price": "20.00",
"has_many_goods_discount": []
}
}
],
"has_one_brand": null,
"has_one_share": {
"need_follow": 1,
"share_title": "",
"share_thumb": "",
"share_desc": ""
},
"has_one_goods_dispatch": {
"id": 3637,
"goods_id": 3670,
"dispatch_type": 1,
"dispatch_price": "0.00",
"dispatch_id": 0,
"is_cod": 1,
"created_at": "2022-08-24 15:37:53",
"updated_at": "2022-08-24 15:37:57",
"deleted_at": null,
"dispatch_type_ids": "1"
},
"has_one_privilege": null,
"has_one_sale": {
"id": 3665,
"goods_id": 3670,
"max_balance_deduct": "",
"is_sendfree": 0,
"ed_num": "",
"ed_money": "",
"ed_areas": "",
"ed_areaids": null,
"bonus": 0,
"max_point_deduct": "",
"point": "",
"ed_full": "0.00",
"ed_reduction": "0.00",
"is_push": 0,
"push_goods_ids": "0",
"award_balance": "0",
"min_point_deduct": "",
"point_type": 0,
"max_once_point": "0",
"created_at": null,
"updated_at": null,
"all_point_deduct": "0.00",
"has_all_point_deduct": 0,
"balance_deduct": 1,
"pay_reward_balance": "0",
"min_balance_deduct": ""
},
"has_one_goods_coupon": null,
"has_one_invite_page": null,
"has_one_goods_limit_buy": null,
"has_one_goods_video": null,
"has_one_goods_advertising": null,
"has_many_discount": [],
"has_many_search_filter": [],
"has_many_goods_discount": [],
"member_discount": {
"level_name": "普通会员",
"discount_value": "20.00",
"discount": "2",
"next_level_price": "20.00",
"next_level_name": "VIP",
"level_type": "0",
"display_page": "0"
},
"goods_sale": {
"sale_count": 0,
"first_strip_key": [],
"sale": []
},
"available_coupon": []
},
"is_favorite": {
"status": 0,
"message": "商品未收藏"
}
},
"validate_page": {
"is_bind_mobile": 0,
"invite_page": 0,
"is_invite": 1,
"is_login": 1,
"invite_mobile": 1,
"bind_mobile_page": []
}
}
data.plugin.project_template:
参数名 | 类型 | 说明 |
---|---|---|
num | int | 文章总数 |
list | array | 文章内容 |
参数名 | 类型 | 说明 |
---|---|---|
title | string | 文章名称 |
content | text | 文章内容 |
release_time_at | string | 发布时间 |
created_at | string | 文章创建时间 |
release_name | string | 发布者名称 |
has_one_yz_supply_knowledge_base | array | 知识库信息 |
has_one_yz_supply_knowledge_base:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 知识库id |
title | string | 知识库名称 |