简要描述:

  • 商品简单信息

请求URL:

GET/&route=goods.other-info.get-goods

参数:

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

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "goods",
    "data": {
        "id": 894,
        "uniacid": 6,
        "goods_id": 245,
        "pay_sn": "",
        "total": 1,
        "create_at": 0,
        "price": "100.00",
        "goods_sn": "",
        "uid": 2455,
        "thumb": "http://demo.yun.cn/static/upload/images/6/2022/01/17fd5908dcc2d363548243c47ef3e97d.jpg",
        "title": "23",
        "goods_price": "100.00",
        "goods_option_id": 0,
        "goods_option_title": "",
        "product_sn": "",
        "created_at": "2022-01-25 16:57:06",
        "updated_at": "2022-01-25 16:57:06",
        "discount_price": "0.00",
        "comment_status": 0,
        "change_price": "0.00",
        "comment_id": 0,
        "goods_market_price": "150.00",
        "goods_cost_price": "30.00",
        "vip_price": "0.00",
        "coupon_price": "0.00",
        "payment_amount": "50.00",
        "deduction_amount": "0.00",
        "need_address": 0,
        "order_express_id": null,
        "is_refund": 0,
        "buttons": [
            {
                "name": "评价",
                "api": "",
                "value": ""
            }
        ]
    }
}

错误时返回:

{
result: 0,
msg: "请传入正确参数.",
data: [ ]
}

{
result: 0,
msg: "品牌已被删除或不存在.",
data: [ ]
}

返回参数说明:

参数名 类型 说明
goods_id int 商品ID
title string 商品标题
thumb string 商品图片完整路径
price float 商品金额(元)
goods_option_title float 规格名称

备注:

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