站点工具

New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo". upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo". upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners". upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners". upgrade now! [49.6] (what's this?)
Hotfix release available: 2017-02-19e "Frusterick Manners". upgrade now! [49.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2017-02-19d "Frusterick Manners". upgrade now! [49.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2017-02-19c "Frusterick Manners". upgrade now! [49.3] (what's this?)
Hotfix release available fixing security token and media manager: 2017-02-19b "Frusterick Manners". upgrade now! [49.2] (what's this?)
Hotfix release available fixing install and media manager issues: 2017-02-19a "Frusterick Manners". upgrade now! [49.1] (what's this?)
New release available: 2017-02-19 "Frusterick Manners". upgrade now! [49] (what's this?)
Hotfix release available: 2016-06-26e "Elenor of Tsort". upgrade now! [48.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2016-06-26d "Elenor of Tsort". upgrade now! [48.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2016-06-26c "Elenor of Tsort". upgrade now! [48.3] (what's this?)
Hotfix release available fixing security token: 2016-06-26b "Elenor of Tsort". upgrade now! [48.2] (what's this?)
Hotfix release available fixing authad issues: 2016-06-26a "Elenor of Tsort". upgrade now! [48.1] (what's this?)
New release available: 2016-06-26 "Elenor of Tsort". upgrade now! [48] (what's this?)
Hotfix release available: 2015-08-10a "Detritus". upgrade now! [47.1] (what's this?)
New release available: 2015-08-10 "Detritus". upgrade now! [47] (what's this?)
Hotfix release available: 2014-09-29d "Hrun". upgrade now! [46.4] (what's this?)
Hotfix release available: 2014-09-29c "Hrun". upgrade now! [46.3] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-09-29b "Hrun". upgrade now! [46.2] (what's this?)
Hotfix release available: 2014-09-29a "Hrun". upgrade now! [46.1] (what's this?)
New release available: 2014-09-29 "Hrun". upgrade now! [46] (what's this?)
Hotfix release available: 2014-05-05e "Ponder Stibbons". upgrade now! [44.5] (what's this?)
Hotfix release available: 2014-05-05d "Ponder Stibbons". upgrade now! [44.4] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-05-05c "Ponder Stibbons". upgrade now! [44.3] (what's this?)
Security Hotfix 2014-05-05b to prevent zero byte attacks on external auth systems is available. upgrade now! [44.2] (what's this?)
Security Hotfix 2014-05-05a for Issue 765 available. upgrade now! [44.1] (what's this?)

order_list

某个用户的订单列表接口

1、客户端调用接口

输入参数说明:

  • page 【翻页,从1开始递增】
  • type 【订单状态类型,可传递值:0为待付款、1为已取消、2待确认、3为待发货、4为待收货、5已收货、6为已完成(预留,暂无此项)。无此参数时,表示所有类型订单】

输出参数说明:

  • JSON格式输出,错误时,status值为false,表示未登陆或没有订单列表,示例如下:
{"status":false,"reason":"登陆失败!"}
{"status":false,"reason":"没有订单列表哦!"}

返回false的原因为 access_token 错误或过期(有效期30天,如果30天内用 access_token 访问过此接口,有效期自动延长)或当前类别没有订单列表。

  • JSON格式输出,正确时,status值为true,表示已登陆并且有订单列表,示例如下:
{
"status": true,
"count": "5",
"is_end": true,
"list": [
	{
		"is_payment": "0",
		"items_count": "1",
		"order_name": "19.8包邮超簿防水巧克力有线游",
		"order_status": "待付款",
		"order_time": "2014-08-21 17:07:18",
		"orderid": "140861203809411",
		"pic_url": "http://img01.taobaocdn.com/imgextra/i1/1629398608/TB2nYoxaXXXXXbPXXXXXXXXXXXX_!!1629398608.jpg_320x320q90.jpg",
		"total_price": "19.8"
	},
	{
		"is_payment": "1",
		"items_count": "1",
		"order_name": "婴儿游泳池 五颜六色的海洋球 彩",
		"order_status": "待确认",
		"order_time": "2014-08-21 16:26:53",
		"orderid": "140860961398735",
		"pic_url": "http://img01.taobaocdn.com/imgextra/i1/1629398608/TB2nYoxaXXXXXbPXXXXXXXXXXXX_!!1629398608.jpg_320x320q90.jpg",
		"total_price": "8.7"
	},
	{
		"is_payment": "0",
		"items_count": "2",
		"order_name": "手机通用型便携式充电宝6600毫等2件商品",
		"order_status": "待付款",
		"order_time": "2014-08-21 15:33:57",
		"orderid": "140860643705957",
		"pic_url": "http://img01.taobaocdn.com/imgextra/i1/1629398608/TB2nYoxaXXXXXbPXXXXXXXXXXXX_!!1629398608.jpg_320x320q90.jpg",
		"total_price": "48.8"
	}
]
}
  • status 【表示是否已登陆并且有订单列表,true为是,false为否】
  • count 【该订单类别的订单总数】
  • is_end 【是否还有下一页列表,true为是,false为否】
  • orderid 【订单号】
  • order_name 【订单商品简称,1件商品时显示商品名称,N件商品(N>1)时显示第1件商品名称等N件商品】
  • items_count 【一个主订单中的商品数量】
  • pic_url 【第1件商品的图片】
  • is_payment 【是否付款:1为已付款,0为未付款】
  • order_status 【订单状态中文名称:待付款、已取消、待确认、待发货、待收货、已收货、已完成(预留,暂无此项)】
  • order_time 【下单时间】
  • total_price 【订单总额】

返回首页

order_list.txt · 最后更改: 2014/08/28 12:57 由 106.2.171.114