10.10获取订单列表

优质
小牛编辑
129浏览
2023-12-01

说明

用于获取平台商城订单

请求地址

http://api.dc78.cn/Api/mall_list_order

请求方式

GET

请求参数

GET参数
描述

new=1 ,设置为1获取新订单(状态为0,1),如不设置则返回全部订单

size=30,一次分页的数量,默认30

page=1,获取分页的页码
POST数据
描述


返回

{
"data": {
"count": "35",
"size": "2",
"pages": "18",
"page": "10",
"table": [
{
"id": "10000000108",
"customer_id": "2725283",
"cost": "699.00",
"price": "699.00",
"contact": "张三丰",
"phone": "",
"address": "东方路9号",
"content": [
{
"commodity_id": "10",
"ext_code": "00102",
"customer_id": "2725283",
"shop_orders_id": "1000000108",
"name": "飞利浦(PHILIPS)BSC201/00 洁肤仪 净颜全方位",
"description": "",
"picture": "http://img.dc78.cn/201604291147055322.jpg",
"cost": "699.00",
"price": "699",
"quantity": "1"
}
],
"addtime": "2016-08-18 11:29:59",
"delivery_time": "",
"status": "0",
"logistics_order": ""
},
{
"id": "10000000107",
"customer_id": "2725283",
"shop_orders_id": "1000000107",
"cost": "699.00",
"price": "699.00",
"contact": "张无忌",
"phone": "",
"address": "建设路8",
"content": [
{
"commodity_id": "10",
"ext_code": "00103",
"customer_id": "2725283",
"shop_orders_id": "1000000107",
"name": "飞利浦(PHILIPS)BSC201/00 洁肤仪 净颜全方位",
"description": "",
"picture": "http://img.dc78.cn/201604291147055322.jpg",
"cost": "699.00",
"price": "699",
"quantity": "1"
}
],
"addtime": "2016-08-18 11:29:59",
"delivery_time": "",
"status": "0",
"logistics_order": ""
}
]
},
"status": "1",
"server_time": "2016-11-20 16:00:29",
"server_name": "wx4#"
}

参数参数名称必填描述范例
count
订单的总数

并不一定是本次返回的数量
35
size
每页数量

同请求时传入的size
2
pages
总页数


18
page
页码

同请求时传入的page,传入超范围page会强制返回1
10
table


下面为商品列表


请求方式

INI

请求参数

[action]
描述

action=mall_list_commodity
[get]
描述

page=1

size=30
[post]
描述


返回

[result]

status=1

data={object}

[result_data]

count=6

size=30

page=1

pages=1

table=array:2

[result_data_table_0]

id=10000000108
customer_id=2725283
cost=699.00
price=699.00
contact=张三丰
phone=
address=东方路9号

addtime=2016-08-18 11:29:59
delivery_time=
status=0
logistics_order=

content=array:1

[result_data_table_0_content_0]

commodity_id=10
customer_id=2725283
shop_orders_id=1000000108
name=飞利浦(PHILIPS)BSC201/00 洁肤仪 净颜全方位
description=
picture=http://img.dc78.cn/201604291147055322.jpg
cost=699.00
price=699
quantity=1

[result_data_table_1]

id=10000000107
customer_id=2725283
shop_orders_id=1000000107
cost=699.00
price=699.00
contact=张无忌
phone=
address=建设路8

addtime=2016-08-18 11:29:59
delivery_time=
status=0
logistics_order=

content=array:1

[result_data_table_1_content_0]

commodity_id=10
customer_id=2725283
shop_orders_id=1000000107
name=飞利浦(PHILIPS)BSC201/00 洁肤仪 净颜全方位
description=
picture=http://img.dc78.cn/201604291147055322.jpg
cost=699.00
price=699
quantity=1

[result]

描述

status=1

data={object}

[result_data]

描述

count=6


size=30

page=1

pages=1

table=array:2

[result_data_table_0]

描述

id=10000000108

customer_id=2725283

cost=699.00

price=699.00

contact=张三丰

phone=

address=东方路9号

addtime=2016-08-18 11:29:59

delivery_time=

status=0

logistics_order=

content=array:1

[result_data_table_0_content_0]

描述

commodity_id=10

customer_id=2725283

shop_orders_id=1000000108

name=飞利浦(PHILIPS)BSC201/00 洁肤仪 净颜全方位

description=

picture=http://img.dc78.cn/201604291147055322.jpg

cost=699.00

price=699

quantity=1
[result_data_table_1]描述

id=10000000107

customer_id=2725283

shop_orders_id=1000000107

cost=699.00

price=699.00

contact=张无忌

phone=

address=建设路8

addtime=2016-08-18 11:29:59

delivery_time=

status=0

logistics_order=

content=array:1

[result_data_table_1_content_0]

描述

commodity_id=10

customer_id=2725283

shop_orders_id=1000000107

name=飞利浦(PHILIPS)BSC201/00 洁肤仪 净颜全方位

description=

picture=http://img.dc78.cn/201604291147055322.jpg

cost=699.00

price=699

quantity=1