通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
>获取登录用户的购物车数据 ~~~[api] get:/index.php/order/Apiorder/member_order_cart <<< success { "err": 0, "count": 1, "data": [ { "id": 1, "goods": { "id": 10, "title": "产品标题", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", }, "price": 10, "goods_num": 10, "property":"颜色:红色,尺码:XL", "air": 1, "other": "" } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 描述 | | --- | --- | | count| 当前记录数 | | data| 购物车列表 | | |----id | 购物车id | | |----price| 价格 | | |----goods_num| 产品数量 | | |----property| 规格属性 | | |----goods_type| 产品类型 0:实物 1:虚拟 | | |----goods| 产品信息 | | |----|----id| 产品id| | |----|----title| 产品标题 | | |----|----thumb| 产品缩略图 | >获取点击购买商品后,获取商品信息,并确认 ~~~[api] get:/index.php/order/Apiorder/member_order_product string:order_sign=product# 订单类型,默认为产品 *int:id=1#购买产品id string:isGive=0 #是否为赠送模式,0:普通购买,1:赠送模式,如果为赠送模式,在购买成功后,将生成赠送码(待开发参数) <<< success { "err": 0, "data": { "id": 10, "title": "产品标题", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "price": 10, "isGive": 0, "deductionpoint": [ { "point_type_": "point", "point_name_": "积分", "point_unit_": "分", "point_": 200, "point_type": "money", "point_name": "人民币", "point_unit": "元", "point": 20 } ] } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 描述 | | --- | --- | | data| 购买产品信息 | | |----id | 产品id | | |----title| 产品标题 | | |----thumb| 产品缩略图 | | |----price| 产品价格 | | |----isGive| 是否赠送 | | |----deductionpoint| 积分抵扣 (参数待开发) | | |----|----point_type_| 抵扣的积分类型| | |----|----point_name_| 抵扣的积分名称 | | |----|----point_unit_| 抵扣的积分单位 | | |----|----point_| 抵扣的积分数 | | |----|----point_type| 抵扣成积分类型 | | |----|----point_name| 抵扣成积分名称 | | |----|----point_unit| 抵扣成积分单位 | | |----|----point| 抵扣成积分数 | >产品下单接口 ~~~[api] get:/index.php/order/Apiorder/member_order_submit string:order_sign=product# product:产品 string:deduction= #折扣,抵扣积分的币种标识(待开发参数) string:id=1,2,3#购买内容的id,多个id用逗号隔开 string:isGive=0 #是否为赠送模式,0:普通购买,1:赠送模式,如果为赠送模式,在购买成功后,将生成赠送码(待开发参数) <<< success { "err": 0, "data": { "order_sn": "订单号", } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 描述 | | --- | --- | | data| 订单信息 | | |----order_sn| 下单后生成的订单号 | >会员订单付款 ~~~[api] get:/index.php/order/Apiorder/member_order_pay *string:order_sn= # 订单号 string:pay_type="WX" #支付方式 WX:微信支付,Balance:余额支付 <<< success { "err": 0, "data": { "pay_type": "WX", "param": "", } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 |描述 | | --- | --- | | data| 选择支付类型提交后返回的数据 | | |----pay_type| 支付类型,WX:在微信浏览器中支付,一般为公众号中支付(wxPayJs支付方式),WX_H5:H5支付,一般在手机上,但非公众号内支付,WX_Native:扫码支付,一般在PC端支付,Alipay:支付宝支付,Balance:余额支付 | | |----param | 支付参数,WX支付方式,该参数返回微信wxPayJs支付调起微信所需的参数,WX_H5支付方式,该参数返回调起微信支付的连接,前端只需要访问一次该连接即可,WX_Native支付方式,该参数返回支付二维码连接,前端只需显示出改连接的图片即可,其它支付方式无此参数 | >获取登录用户的订单列表 ~~~[api] get:/index.php/order/Apiorder/member_order_list int:pagesize=10#每页显示个数 int:page=1#显示页码数 string:order_sn=# 订单号 string:order_sign=product# product:产品 string:between_price= #订单实付款价格区间如100-200 string:between_pay_time= #支付时间戳区间如12345678910-12345678910 string:between_finish_time= #完成时间戳区间如12345678910-12345678910 string:between_ship_time= #发货时间戳区间如12345678910-12345678910 int:pay_status= 0#支付状态 0:未付款 1:已付款 int:ship_status= 0#配送状态 0:未配送 1:配送中 2:已完成 int:order_status= 0#订单状态 0:未确认 1:已确认 2:退款中 3:交易关闭 4:退货订单 int:pay_type= 0#支付方式 0:微信 1:支付宝 2:余额 int:type= 0#订单类型 0:普通 1:砍价 2:团购 3:秒杀 string:sort= id #排序字段 string:sort_type= asc#排序类型 <<< success { "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "data": [ { "id": 1, "order_sn": "订单号", "order_amount": 100, "goods_amount": 10, "discount": 10, "order_status": 0, "pay_status": 1, "pay_time": "2020-03-17 17:12:11", "finish_time": "2020-03-17 17:12:11", "ship_time": "2020-03-17 17:12:11", "pay_type": 1, "is_expense": 2, "consignee": "", "goods": [ { "id": 10, "title": "产品标题", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "price": 10, "order_num": 10, "property":"颜色:红色,尺码:XL" } ], "addtime": "2020-03-17 17:12:11", } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 详情 | | --- | --- | | page | 当前页码 | | pageTotal | 总共页码数 | | pageSize | 每页显示记录条数 | | count| 当前记录数 | | data| 订单列表| | |----id| 订单id | | |----order_sn| 订单号 | | |----order_amount| 订单金额 | | |----goods_amount| 商品总价 | | |----discount| 折扣 | | |----order_status| 订单状态 0未确认 1已确认 2退款中 3交易关闭 4退货订单 | | |----pay_status| 支付状态 0未付款 1已付款 | | |----pay_time| 支付时间| | |----finish_time| 完成时间| | |----ship_time| 发货时间| | |----pay_type| 支付类型 0:微信 1:支付宝 2:余额 | | |----is_expense| 是否报销| | |----consignee| 收货地址 | | goods| 订单产品信息| | |----id | 产品id | | |----title| 产品标题 | | |----thumb| 缩略图 | | |----price| 产品价格 | | |----order_num| 数量 | | |----property| 属性 | | addtime| 下单时间| >获取登录用户的订单详情 ~~~[api] get:/index.php/order/Apiorder/member_order_getInfo *string:order_sn= #订单号 <<< success { "err": 0, "count": 1, "data": { "id": 1, "order_sn": "订单号", "order_amount": 100, "goods_amount": 10, "discount": 10, "order_status": 0, "pay_status": 1, "pay_time": "2020-03-17 17:12:11", "finish_time": "2020-03-17 17:12:11", "ship_time": "2020-03-17 17:12:11", "pay_type": 1, "is_expense": 2, "consignee": "", "remark":"备注", "goods": [ { "id": 10, "title": "产品标题", "thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "price": 10, "order_num": 10, "property":"颜色:红色,尺码:XL" } ], "addtime": "2020-03-17 17:12:11" } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 详情 | | --- | --- | | data| 订单列表| | |----id| 订单id | | |----order_sn| 订单号 | | |----order_amount| 订单金额 | | |----goods_amount| 商品总价 | | |----discount| 折扣 | | |----order_status| 订单状态 0未确认 1已确认 2退款中 3交易关闭 4退货订单 | | |----pay_status| 支付状态 0未付款 1已付款 | | |----pay_time| 支付时间| | |----finish_time| 完成时间| | |----ship_time| 发货时间| | |----pay_type| 支付类型 0:微信 1:支付宝 2:余额 | | |----is_expense| 是否报销| | |----consignee| 收货地址 | | |----remark| 备注 | | goods| 订单产品信息| | |----id | 产品id | | |----title| 产品标题 | | |----thumb| 缩略图 | | |----price| 产品价格 | | |----order_num| 数量 | | |----property| 属性 | | addtime| 下单时间| >取消订单 ~~~[api] get:/index.php/order/Apiorder/member_submit_order_cancel *string:order_sn= #订单号 <<< success { "err": 0, "data": { } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >发货地址列表 ~~~[api] get:/index.php/order/Apiorder/member_address_list <<< success { "err": 0, "page": 1, "pageTotal": 10, "pageSize": 10, "count": 1, "default": 1, "data": [ { "id": 10, "nickname": "昵称", "mobile": "123456789", "detailed_addr": "详细地址", "addr": { "province": "省", "city": "市", "county": "县" } } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 详情 | | --- | --- | | page | 当前页码 | | pageTotal | 总共页码数 | | pageSize | 每页显示记录条数 | | count| 当前记录数 | | default| 默认发货地址id | | data| 发货地址数据| | |----id| 发货地id | | |----nickname| 收货人 | | |----mobile| 联系电话 | | |----detailed_addr| 详细地址 | | |----addr| 地址信息 | | |----|----province| 省 | | |----|----city| 市 | | |----|----county| 县 | >添加发货地址 ~~~[api] get:/index.php/order/Apiorder/member_address_add *string:nickname= #用户姓名 *string:mobile= #手机号 *string:detailed_addr= #详细地址 *string:addr= {province:'省',city:'市',county:'县'}#区域选择 <<< success { "err": 0, "data": { } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >编辑发货地址 ~~~[api] get:/index.php/order/Apiorder/member_address_edit *int:id= #发货地址id string:nickname= #用户姓名 string:mobile= #手机号 string:detailed_addr= #详细地址 string:addr= {province:'省',city:'市',county:'县'}#区域选择 string:default= 1#设置默认 <<< success { "err": 0, "data": { } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >获取发货地址详情 ~~~[api] get:/index.php/order/Apiorder/member_address_getIinfo *int:id= #发货地址id <<< success { "err": 0, "data": { "id": 10, "nickname": "昵称", "mobile": "123456789", "detailed_addr": "详细地址", "addr": { "province": "省", "city": "市", "county": "县" } } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 详情 | | --- | --- | | data| 发货地址数据| | |----id| 发货地id | | |----nickname| 收货人 | | |----mobile| 联系电话 | | |----detailed_addr| 详细地址 | | |----addr| 地址信息 | | |----|----province| 省 | | |----|----city| 市 | | |----|----county| 县 | >删除发货地址 ~~~[api] get:/index.php/order/Apiorder/member_address_del *int:id= #发货地址id *int:key= #键值 <<< success { "err": 0, "data": { } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~