简要描述:

  • 获取入驻商品列表

请求域名:

  • http://xx.com

请求URL:

GET:plugin.enter-goods.frontend.order.goods-buy

参数:

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

返回示例:

正确时返回:

{
    "result":1,
    "msg":"成功",
    "data":{
        "discount":{
            "coupon":[
                {
                    "id":510,
                    "uniacid":3,
                    "uid":"1",
                    "coupon_id":17,
                    "get_type":1,
                    "used":0,
                    "use_time":0,
                    "get_time":"2018-06-06 09:17:09",
                    "send_uid":0,
                    "order_sn":"",
                    "back":0,
                    "back_time":0,
                    "deleted_at":null,
                    "valid":true,
                    "checked":false,
                    "time_start":"2018-06-06",
                    "time_end":"不限时间",
                    "belongs_to_coupon":{
                        "id":17,
                        "uniacid":3,
                        "cat_id":0,
                        "name":"满50-5",
                        "get_type":1,
                        "level_limit":-1,
                        "get_max":10,
                        "use_type":0,
                        "return_type":0,
                        "bgcolor":"",
                        "enough":50,
                        "coupon_type":0,
                        "time_limit":0,
                        "time_days":0,
                        "time_start":"2018-05-17",
                        "time_end":"2018-05-24",
                        "coupon_method":1,
                        "discount":"0.00",
                        "deduct":"5.00",
                        "back_type":0,
                        "back_money":"",
                        "back_credit":"",
                        "back_redpack":"",
                        "back_when":0,
                        "thumb":"",
                        "desc":null,
                        "total":-1,
                        "status":1,
                        "money":"0.00",
                        "resp_desc":null,
                        "resp_thumb":"",
                        "resp_title":"",
                        "resp_url":"",
                        "credit":0,
                        "usecredit2":0,
                        "remark":"",
                        "descnoset":0,
                        "display_order":0,
                        "supplier_uid":0,
                        "getcashier":0,
                        "cashiersids":null,
                        "cashiersnames":null,
                        "category_ids":null,
                        "categorynames":null,
                        "goods_names":null,
                        "goods_ids":null,
                        "storeids":null,
                        "storenames":null,
                        "getstore":0,
                        "getsupplier":0,
                        "supplierids":null,
                        "suppliernames":null,
                        "createtime":0,
                        "created_at":"2018-05-17",
                        "updated_at":"2018-05-17",
                        "deleted_at":null,
                        "is_complex":0,
                        "surplus":999999
                    }
                }
            ]
        },
        "dispatch":[

        ],
        "order_data":[
            {
                "order":{
                    "id":null,
                    "uid":1,
                    "uniacid":3,
                    "dispatch_type_id":0,
                    "mark":"",
                    "goods_price":"91.00",
                    "price":"68.00",
                    "order_goods_price":"91.00",
                    "discount_price":"23.00",
                    "deduction_price":"0.00",
                    "dispatch_price":"0.00",
                    "goods_total":1,
                    "order_sn":"SN20181205135817SF",
                    "create_time":"2018-12-05 13:58:17",
                    "is_virtual":false,
                    "pre_id":"5c8c379ab20db689e827c143357f8c16",
                    "order_settings":[

                    ],
                    "order_address":{
                        "street_id":0
                    },
                    "order_goods":[
                        {
                            "goods_option_id":0,
                            "goods_option_title":"",
                            "comment_status":0,
                            "goods_id":173,
                            "total":1,
                            "uid":1,
                            "uniacid":3,
                            "goods_sn":"",
                            "title":"运费测试--按重测试1",
                            "thumb":"https://test-1251768088.cosgz.myqcloud.com/images/3/2018/02/L6dCEjcee2lpE4hxelllZ6u2LZPHES.jpg",
                            "goods_price":"91.00",
                            "price":"91.00",
                            "goods_cost_price":"10.00",
                            "goods_market_price":"10.00",
                            "coupon_price":"0.00",
                            "buttons":[

                            ],
                            "order_goods_discounts":[

                            ],
                            "order_goods_deductions":[
                                {
                                    "uid":1,
                                    "code":"point",
                                    "name":"美币abc",
                                    "usable_amount":"0.00",
                                    "usable_coin":null
                                },
                                {
                                    "uid":1,
                                    "code":"love",
                                    "name":"兑换值",
                                    "usable_amount":"0.00",
                                    "usable_coin":null
                                }
                            ],
                            "goods_option":null
                        }
                    ],
                    "order_coupons":[

                    ],
                    "order_discounts":[
                        {
                            "discount_code":"singleEnoughReduce",
                            "amount":"0.00",
                            "name":"单品满减优惠",
                            "uid":1
                        },
                        {
                            "discount_code":"enoughReduce",
                            "amount":"23.00",
                            "name":"全场满减优惠",
                            "uid":1
                        },
                        {
                            "discount_code":"coupon",
                            "amount":"0.00",
                            "name":"优惠券优惠",
                            "uid":1
                        },
                        {
                            "discount_code":"deduction",
                            "amount":"0.00",
                            "name":"抵扣金额",
                            "uid":1
                        }
                    ],
                    "order_deductions":[
                        {
                            "uid":1,
                            "coin":"68.00",
                            "amount":"68.00",
                            "code":"point",
                            "name":"美币abc",
                            "checked":false
                        }
                    ],
                    "has_one_dispatch_type":null
                },
                "discount":{
                    "deduction":[

                    ]
                },
                "supplier":{
                    "username":"自营",
                    "id":0
                }
            }
        ],
        "total_goods_price":"91.00",
        "total_dispatch_price":"0.00",
        "total_discount_price":"23.00",
        "total_deduction_price":"0.00",
        "total_price":"68.00",
        "enter_goods":{
            "id":2,
            "uniacid":3,
            "goods_id":173,
            "pay_type_id":1,
            "thumb":"",
            "footer_content":null,
            "payment_background_thumb":"",
            "created_at":"2018-12-04 14:03:54",
            "updated_at":"2018-12-04 14:03:54",
            "deleted_at":null,
            "qrcode_url":"http://www.yunzong.com/addons/yun_shop/storage/app/public/qr/enter-goods/d2625d86d2593081efffee5bcee76202.png",
            "qrcode_path":"app/public/qr/enter-goods/d2625d86d2593081efffee5bcee76202.png"
        }
    }
}

错误时返回:

  {
    "result": 0,
    "msg": "错误数据"
  }

返回参数说明:

参数名 类型 说明
order_data [order] 订单信息
total_dispatch_price float 订单总运费
total_price float 订单总价
order参数名 类型 说明
order_goods [order_goods] 商品id
order_goods参数名 类型 说明
enter_goods参数 类型 说明
thumb string 底部信息图片
footer_content strin 底部文案
payment_background_thumb string 支付页背景图片

备注:

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