>获取当前登录用户的购物车数据
~~~[api]
get:/index.php/order/Apiorder/member_order_cart
int:mall_model_id=1#商城id,如果有多个商城需要填写商城id
<<<
success
{
"err": 0,
"count": 1,
"data": [
{
"id": 1,
"goods_id": 10,
"goods": {
"id": 10,
"title": "产品标题",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
},
"price": 10,
"goods_num": 10,
"mall_model_id": 10,
"property":"颜色:红色,尺码:XL",
"air": 1,
"other": ""
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取点击购买商品后,获取商品信息,并确认
~~~[api]
get:/index.php/order/Apiorder/member_order_product
*string:order_sign=curriculum# curriculum:课程,special:专栏,product:产品,chapter:章节
*int:id=1#购买产品id
int:mall_model_id=1#商城id,如果有多个商城需要填写商城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",
"mall_model_id": 1,
"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": "错误信息"
}
~~~
>下单接口
~~~[api]
get:/index.php/order/Apiorder/member_order_submit
*string:order_sign=curriculum# curriculum:课程,special:专栏,product:产品,chapter:章节
*string:deduction= #抵扣积分的币种标识
int:mall_model_id=1#商城id,如果有多个商城需要填写商城id
string:curriculumid=curriculum#优惠卷id,多个id用逗号隔开
string:id=1,2,3#购买内容的id,多个id用逗号隔开
string:isGive=0 #是否为赠送模式,0:普通购买,1:赠送模式,如果为赠送模式,在购买成功后,将生成赠送码
<<<
success
{
"err": 0,
"data": [
{
"id": 1,
"order_sn": "订单号",
"goods": [
{
"id": 10,
"title": "产品标题",
"mall_model_id": 1,
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"price": 1000,
"order_num": 1
}
],
"isGive": 0,
"total_price": 10
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>会员订单付款
~~~[api]
get:/index.php/order/Apiorder/member_order_pay
*string:order_sn= # 订单号
string:pay_type="WX" #支付方式 WX:微信支付,Balance:余额支付
<<<
微信支付
{
"err": 0,
"data": {
"pay_type": "WX",
"returnData": {
"timestamp": 12345678910,
"nonceStr": "ABDHHD",
"package": "",
"signType": "",
"paySign": ""
}
}
}
<<<
余额支付
{
"err": 0,
"data": {
"pay_type": "Balance",
"code": [ ]
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取登录用户的订单列表
~~~[api]
get:/index.php/order/Apiorder/member_order_list
int:pagesize=10#每页显示个数
int:page=1#显示页码数
*int:id=1#购买产品id
string:order_sign=curriculum# curriculum:课程,special:专栏,product:产品,chapter:章节
int:mall_model_id=1#商城id,如果有多个商城需要填写商城id
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
{
"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": 12345678910,
"finish_time": 12345678910,
"ship_time": 123456789,
"mall_model_id": 2,
"pay_type": 1,
"is_expense": 2,
"order_come": 1,
"operation_type": 1,
"consignee": "",
"status": 0,
"goods": [
{
"id": 10,
"title": "产品标题",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"price": 10,
"order_num": 10,
"mall_model_id": 10,
"mall_model_id": 1,
"property":"颜色:红色,尺码:XL"
}
],
"addtime": 12345678910,
"balance":10
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取登录用户的订单详情
~~~[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": 12345678910,
"finish_time": 12345678910,
"ship_time": 123456789,
"mall_model_id": 2,
"pay_type": 1,
"is_expense": 2,
"order_come": 1,
"operation_type": 1,
"consignee": "",
"status": 0,
"remark":"备注",
"goods": [
{
"id": 10,
"title": "产品标题",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"mall_model_id": 1,
"price": 10,
"order_num": 10,
"mall_model_id": 10,
"property":"颜色:红色,尺码:XL"
}
],
"addtime": 12345678910
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>取消订单
~~~[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_submit_order_point
*int:id=1#购买产品id
*int:order_num=1#订单数量
string:property= 0_0|1_0 #产品选择属性
<<<
success
{
"err": 0,
"data":
{
order_sn:"XXXXXXXX"
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>发货地址列表
~~~[api]
get:/index.php/order/Apiorder/member_address_list
<<<
success
{
"err": 0,
"count": 1,
"default": 1,
"data": [
{
"id": 10,
"nickname": "昵称",
"key": 10,
"mobile": "123456789",
"detailed_addr": "详细地址",
"addr": {
"province": "省",
"city": "市",
"county": "县"
}
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>添加发货地址
~~~[api]
get:/index.php/order/Apiorder/member_address_add
*string:nickname= #用户姓名
*string:mobile= #手机号
*string:detailed_addr= #详细地址
*string:addr= {province:'省',city:'市',county:'县'}#区域选择
<<<
success
{
"err": 0,
"count": 1,
"default": 1,
"data": [
{
"id": 10,
"nickname": "昵称",
"key": 10,
"mobile": "123456789",
"detailed_addr": "详细地址",
"addr": {
"province": "省",
"city": "市",
"county": "县"
}
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>编辑发货地址
~~~[api]
get:/index.php/order/Apiorder/member_address_edit
*int:id= #发货地址id
int:key= #修改的键值
string:nickname= #用户姓名
string:mobile= #手机号
string:detailed_addr= #详细地址
string:addr= {province:'省',city:'市',county:'县'}#区域选择
string:default= 1#设置默认
<<<
success
{
"err": 0,
"count": 1,
"default": 1,
"data": [
{
"id": 10,
"nickname": "昵称",
"key": 10,
"mobile": "123456789",
"detailed_addr": "详细地址",
"addr": {
"province": "省",
"city": "市",
"county": "县"
}
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取发货地址详情
~~~[api]
get:/index.php/order/Apiorder/member_address_getIinfo
*int:id= #发货地址id
*int:key= #修改的键值
<<<
success
{
"err": 0,
"data":
{
"id": 10,
"nickname": "昵称",
"key": 10,
"mobile": "123456789",
"detailed_addr": "详细地址",
"addr": {
"province": "省",
"city": "市",
"county": "县"
}
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>删除发货地址
~~~[api]
get:/index.php/order/Apiorder/member_address_del
*int:id= #发货地址id
*int:key= #键值
<<<
success
{
"err": 0,
"count": 1,
"default": 1,
"data": [
{
"id": 10,
"nickname": "昵称",
"key": 10,
"mobile": "123456789",
"detailed_addr": "详细地址",
"addr": {
"province": "省",
"city": "市",
"county": "县"
}
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~