简要描述:

  • 获取商品详情

请求URL:

GET/plugin.appointment.frontend.project-goods.goods-detail

参数:

参数名 是否必须 类型 说明
goods_id int 商品id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "id": 93471,
        "title": "asas",
        "sku": "asdas",
        "status": 0,
        "stock": 333333,
        "thumb": "http://www.shop777.com/static/upload/images/1/2024/01/241fed586ea860e69064ce029009144c.jpg",
        "thumb_url": [],
        "content": "",
        "market_price": "0.00",
        "price": "0.00",
        "cost_price": "0.00",
        "reduce_stock_method": 0,
        "no_refund": 0,
        "goods_sn": "",
        "product_sn": "",
        "category": [
            [
                {
                    "id": 975, //分类id
                    "name": "家居百货", //分类名称
                    "level": 1 //分类等级
                },
                {
                    "id": 988,
                    "name": "家庭清洁",
                    "level": 2
                },
                {
                    "id": 989,
                    "name": "环境清洁",
                    "level": 3
                }
            ]
        ],
        "create_name": "aaa",
        "status_name": "下架",
        "has_many_appointment_goods": [
            {
                "id": 3,
                "uniacid": 1,
                "goods_id": 93471,
                "project_id": 2,
                "service_count": 5,
                "price": "1.00",
                "score": null,
                "created_at": "2024-03-18 16:05:55",
                "updated_at": "2024-03-18 16:05:55",
                "deleted_at": null,
                "worker_commission": "2.00",
                "merchant_staff_commission": "3.00",
                "area_set": 1,
                "province": "1.00",
                "city": "2.00",
                "district": "3.00",
                "street": "4.00"
            }
        ],
        "has_many_goods_category": [
            {
                "id": 1506,
                "goods_id": 93471,
                "category_id": 989,
                "category_ids": "975,988,989",
                "updated_at": "2024-03-25 16:06:35",
                "created_at": "2024-03-25 16:06:35",
                "deleted_at": null,
                "goods_option_id": 0
            }
        ],
        "goods_creator": {
            "id": 1,
            "uniacid": 1,
            "goods_id": 93471,
            "creator_id": 19,
            "created_at": null,
            "updated_at": null
        }
    }
}

错误时返回:

  

返回参数说明:

参数名 类型 说明
id int 商品id
title string 商品名称
status int 状态1上架0下架
status_name string 状态名称
sku string 单位
stock int 库存
thumb string 商品图片路径
thumb_url array 其它图片数组
content string 商品详情
market_price string 原价
price string 现价
cost_price string 成本价
no_refund int 不可退款退货 , 1开启,0关闭
goods_sn string 商品编码
product_sn string 商品条码
has_many_appointment_goods array 预约数组
has_many_appointment_goods[n].id int 预约id
has_many_appointment_goods[n].service_count int 预约次数
has_many_appointment_goods[n].project_id int 项目id
has_many_appointment_goods[n].price string 门店分润 (元)
has_many_appointment_goods[n].worker_commission string 技师分润
has_many_appointment_goods[n].merchant_staff_commission string 招商员分润 (元)
has_many_appointment_goods[n].area_set int 区域代理分红0关闭,1开启
has_many_appointment_goods[n].province int
has_many_appointment_goods[n].city int
has_many_appointment_goods[n].district int
has_many_appointment_goods[n].street int

备注:

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