Showing
2 changed files
with
548 additions
and
564 deletions
1 | # 订单服务接口 | 1 | # 订单服务接口 |
2 | 2 | ||
3 | ## 接口列表 | 3 | ## 接口列表 |
4 | -| 接口 | 接口名称 | 开发环境 | 测试环境 | 线上环境 | 备注 | | ||
5 | -| ---- | -------- | -------- | -------- | -------- | ---- | | ||
6 | -| app.SpaceOrders.get |[订单列表](/orders.md#1)| Y | Y | Y | | | ||
7 | -| app.SpaceOrders.getShareOrder |[晒单订单列表](#1)| Y | Y | Y | | | ||
8 | -| app.SpaceOrders.info |[订单详情](/orders.md#2)| Y | Y | Y | 已废弃 | | ||
9 | -| app.SpaceOrders.detail |[订单详情](/orders.md#2)| Y | Y | Y | | | ||
10 | -| app.SpaceOrders.getQrByOrderCode |[获取电子票列表](#1)| Y | Y | N | | | ||
11 | -| app.SpaceOrders.close |[取消订单](/orders.md#3)| Y | Y | Y | | | ||
12 | -| app.SpaceOrders.delOrderByCode |[删除订单](/orders.md#4)| Y | Y | Y | | | ||
13 | -| app.SpaceOrders.confirm |[确认订单](/orders.md#5)| Y | Y | Y | | | ||
14 | -| app.SpaceOrders.updateOrdersPaymentByCode |[更新订单支付信息](#1)| Y | Y | Y | | | ||
15 | -| app.SpaceOrders.payConfirm |[支付确认](#1)| Y | Y | Y | | | ||
16 | -| app.SpaceOrders.history |[历史订单列表](/orders.md#10)| Y | Y | N | | | ||
4 | +| 接口名称 | 接口描述 | | ||
5 | +| --------| -------- | | ||
6 | +|[订单列表](#1)|| | ||
7 | +|[订单详情](#2)|| | ||
8 | +|[取消订单](#3)|| | ||
9 | +|[删除订单](#4)|| | ||
10 | +|[确认订单](#5)|| | ||
11 | +|[获取电子票列表](#6)|| | ||
12 | +|[获取YOHO赠品](#7-yoho)|| | ||
13 | +|[购物车列表](#8)|| | ||
14 | +|[获取待处理订单总数](#9)|| | ||
15 | +|[历史订单列表](#10)|| | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | +## 接口描述 | ||
20 | + | ||
21 | +### 1、订单列表 | ||
22 | + | ||
23 | +#### 说明 | ||
24 | +订单列表 | ||
25 | +#### 请求参数 | ||
26 | +| Param Name | Param Type | Required | Param Value | Desc | | ||
27 | +| :-- | --: | --: | --: | --: | | ||
28 | +| method | string | true | app.SpaceOrders.get| 请求方法 不可变 | | ||
29 | +| uid | int | true | 1 | | | ||
30 | +| type | int | true | 1 | 订单类型 1:全部订单,2:待付款,3:待发货,4:待收货,5:待评论/成功订单,7:失败/取消 | | ||
31 | +| page | int | false | 1 | 页数 | | ||
32 | +| limit | int | false | 10 | 每页大小 | | ||
33 | + | ||
34 | +#### 响应内容 | ||
35 | +```json | ||
36 | +{ | ||
37 | + "code": 200, | ||
38 | + "data": { | ||
39 | + "order_list": [ | ||
40 | + { | ||
41 | + "id": "5528982", | ||
42 | + "order_code": "1519273880", | ||
43 | + "parent_order_code": "0", | ||
44 | + "order_type": 1, | ||
45 | + "refund_status": 0, | ||
46 | + "uid": "5772257", | ||
47 | + "create_time": "1449633428", | ||
48 | + "update_time": "1449633455", | ||
49 | + "pay_expire": "2015-12-09 13:57:08", | ||
50 | + "payment": "2", | ||
51 | + "payment_status": "Y", | ||
52 | + "payment_type": "1", | ||
53 | + "payment_type_str": "在线支付", | ||
54 | + "status": 1, | ||
55 | + "status_str": "已付款", | ||
56 | + "attribute": "5", | ||
57 | + "is_cancel": "N", | ||
58 | + "is_comment": "N", | ||
59 | + "amount": "1.00", | ||
60 | + "shipping_cost": "0.00", | ||
61 | + "use_limit_code": "N", | ||
62 | + "user_confirm_paid": "N", | ||
63 | + "buy_total": 1, | ||
64 | + "order_goods": [ | ||
65 | + { | ||
66 | + "buy_number": 1, | ||
67 | + "goods_id": 125106, | ||
68 | + "goods_image": "http://img10.static.yhbimg.com/goodsimg/2014/06/19/02/0118c2721e4f2219f69539dd389f4bacac.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
69 | + "goods_price": "1.00", | ||
70 | + "goods_type": "ordinary", | ||
71 | + "goods_amount": "1.00", | ||
72 | + "product_id": 84230, | ||
73 | + "product_name": "004 满版龙纹迷彩七分休闲裤", | ||
74 | + "product_skn": 51055461, | ||
75 | + "refund_num": 0, | ||
76 | + "size_name": "M", | ||
77 | + "color_name": "彩色", | ||
78 | + "cn_alphabet": "004QiFenBuKu004PA095", | ||
79 | + "expect_arrival_time": "" | ||
80 | + } | ||
81 | + ] | ||
82 | + } | ||
83 | + ], | ||
84 | + "page": 1, | ||
85 | + "page_total": 27, | ||
86 | + "total": 265 | ||
87 | + }, | ||
88 | + "message": "ok" | ||
89 | +} | ||
90 | +``` | ||
91 | +##### 响应内容描述 | ||
92 | +| Param Name | Param Type | Desc | | ||
93 | +| ---------- | ---------- | ---- | | ||
94 | +| page | int | 当前页数 | | ||
95 | +| page_total | int | 总页数 | | ||
96 | +| total | int | 总记录数 | | ||
97 | +| order_list | json | 订单列表 | | ||
98 | +| id | string | | | ||
99 | +| order_code | string | | | ||
100 | +| parent_order_code | string | | | ||
101 | +| order_type | int | 订单类型 1:有货,3:iphone,4:android,5:淘宝,6:h5,7:是换货,9:渠道,20:ipad | | ||
102 | +| refund_status | int | 退货状态(该字段基本不用了)0:正常订单,1:退货审核中,2:退货审核不通过,3:退货审核通过,4:退货商品寄回,5:退货库房入库,6:财务退款,7:完成 | | ||
103 | +| uid | string | | | ||
104 | +| create_time| string | 创建时间 | | ||
105 | +| update_time| string | 更新时间 | | ||
106 | +| pay_expire | string | 支付超期时间 | | ||
107 | +| payment | string | 支付方式编号 | | ||
108 | +| payment_status | string | 支付状态 Y:已支付,N:未支付 | | ||
109 | +| payment_type | string | 支付方式 1:在线支付,2:货到付款,3:现金支付,4:抵消支付 | | ||
110 | +| status | int | 状态 0:待付款,1-3:待发货,4-5:待收货(0:未付款,1:已付款,2:备货中,3:配货中,4:已发货,5:运输中,6:已完成)| | ||
111 | +| status_str | string | 状态名称 | | ||
112 | +| is_cancel | string | 是否取消 Y:已取消,N:未取消 | | ||
113 | +| is_comment | string | 是否评论 Y:已评论,N:未评论 | | ||
114 | +| amount | string | 订单金额 | | ||
115 | +| shipping_cost | string | 运费 | | ||
116 | +| use_limit_code | string | 使用限购码 Y:使用,N:未使用 | | ||
117 | +| user_confirm_paid| string | 用户确认支付 Y:是,N:否 | | ||
118 | +| buy_total | int | 购买商品数量 | | ||
119 | +| order_goods| json | 购买商品 | | ||
120 | +| buy_number | int | 购买商品数量 | | ||
121 | +| goods_id | int | | | ||
122 | +| goods_image| string | 商品默认图片 | | ||
123 | +| goods_price| string | 商品价格 | | ||
124 | +| goods_type | string | 商品类型 ordinary:普通商品 | | ||
125 | +| goods_amount | string | 商品总价格 | | ||
126 | +| product_id | int | | | ||
127 | +| product_name | string | 商品名称 | | ||
128 | +| product_skn| int | 商品skn | | ||
129 | +| refund_num | int | 退货数量 | | ||
130 | +| size_name | string | 商品尺寸 | | ||
131 | +| color_name | string | 商品颜色 | | ||
132 | +| cn_alphabet| string | | | ||
133 | +| expect_arrival_time | string | 预期到货时间 | | ||
134 | + | ||
135 | + | ||
136 | +### 3、取消订单 | ||
137 | + | ||
138 | +#### 说明 | ||
139 | +根据订单号取消订单 | ||
140 | +#### 请求参数 | ||
141 | +| Param Name | Param Value | Desc| | ||
142 | +| :-------- | --------------:|----:| | ||
143 | +| method | app.SpaceOrders.close| 请求方法 | | ||
144 | +| order_code | 1061003682 | 订单号 | | ||
145 | + | ||
146 | +#### 响应内容 | ||
147 | +```json | ||
148 | +{ | ||
149 | +"code":200, | ||
150 | +"message":"订单取消成功" | ||
151 | +} | ||
152 | +``` | ||
153 | + | ||
154 | +### 5、确认订单 | ||
155 | + | ||
156 | +#### 说明 | ||
157 | +根据订单号确认订单 | ||
158 | +#### 请求参数 | ||
159 | +| Param Name | Param Value | Desc| | ||
160 | +| :-------- | --------------:|----:| | ||
161 | +| method | app.SpaceOrders.confirm| 请求方法 | | ||
162 | +| order_code | 1061003682 | 订单号 | | ||
163 | + | ||
164 | +#### 响应内容 | ||
165 | +```json | ||
166 | +{ | ||
167 | +"code":200, | ||
168 | +"message":"订单确认成功" | ||
169 | +} | ||
170 | +``` | ||
171 | + | ||
172 | + | ||
173 | +### 6、获取电子票列表 | ||
174 | + | ||
175 | + | ||
176 | + | ||
177 | +#### 说明 | ||
178 | +根据订单号获取电子票列表 | ||
179 | +#### 请求参数 | ||
180 | +| Param Name | Param Value | Desc| | ||
181 | +| :-------- | --------------:|----:| | ||
182 | +| method | app.SpaceOrders.getQrByOrderCode| 请求方法 | | ||
183 | +| order_code | 1061003682 | 订单号 | | ||
184 | + | ||
185 | +#### 响应内容 | ||
186 | +```json | ||
187 | +{ | ||
188 | + "code": 200, | ||
189 | + "data": { | ||
190 | + "ticks": [{ | ||
191 | + "ticket_code":"8611779901", | ||
192 | + "qr_image":"http://img06.static.yhbimg.com/yohood/4063/ticket-8611779901-1-40-1-1.jpg", | ||
193 | + "passkit":"Y" | ||
194 | + }], | ||
195 | + "title": "FURY ANIMALS Normal迷彩系列BUNNY短袖TEE" | ||
196 | + }, | ||
197 | + "md5": "24aff7ba505dccb63a14b5d78ae22821", | ||
198 | + "message": "ok" | ||
199 | +} | ||
200 | +``` | ||
201 | +##### 响应内容描述 | ||
202 | +| Param Name | Param Type | Desc | | ||
203 | +| ---------- | ---------- | ---- | | ||
204 | +| title | string | 商品名称 | | ||
205 | +| ticks | json | 电子票 | | ||
206 | +| ticket_code| string | 电子票code | | ||
207 | +| qr_image | string | 电子票code二维码图片路径 | | ||
208 | +| passkit | string | | | ||
209 | + | ||
210 | +### 7、获取YOHO赠品 | ||
211 | + | ||
212 | +#### 说明 | ||
213 | +根据skn获取yohoGift | ||
214 | +#### 请求参数 | ||
215 | +| Param Name | Param Value | Desc| | ||
216 | +| :-------- | --------------:|----:| | ||
217 | +| method | web.Shopping.yohoGift| 请求方法 | | ||
218 | +| skn_list | [50001829,50002280]| skn列表 | | ||
219 | + | ||
220 | +#### 响应内容 | ||
221 | +```json | ||
222 | + { | ||
223 | + "alg": "SALT_MD5", | ||
224 | + "code": 200, | ||
225 | + "data": | ||
226 | + [ | ||
227 | + { | ||
228 | + "default_pic": "http://img11.static.yhbimg.com/goodsimg/2012/03/02/17/019a0794f1eb1ad77ce5d8a2c2b2cf2e50.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
229 | + "id": 3, | ||
230 | + "price": | ||
231 | + { | ||
232 | + "sales_price": 250, | ||
233 | + "yoho_coin_num": 0 | ||
234 | + }, | ||
235 | + "product_name": "OVERKILL 天使山羊TEE", | ||
236 | + "storage": 0, | ||
237 | + "storage_list": | ||
238 | + [ | ||
239 | + { | ||
240 | + "erp_sku_id": 102009, | ||
241 | + "goods_dimension_id": 201, | ||
242 | + "goods_id": 3, | ||
243 | + "product_id": 3, | ||
244 | + "size": | ||
245 | + { | ||
246 | + "size_name": "L" | ||
247 | + }, | ||
248 | + "storage_num": 0 | ||
249 | + }, | ||
250 | + { | ||
251 | + "erp_sku_id": 102010, | ||
252 | + "goods_dimension_id": 203, | ||
253 | + "goods_id": 3, | ||
254 | + "product_id": 3, | ||
255 | + "size": | ||
256 | + { | ||
257 | + "size_name": "M" | ||
258 | + }, | ||
259 | + "storage_num": 0 | ||
260 | + }, | ||
261 | + { | ||
262 | + "erp_sku_id": 102012, | ||
263 | + "goods_dimension_id": 211, | ||
264 | + "goods_id": 3, | ||
265 | + "product_id": 3, | ||
266 | + "size": | ||
267 | + { | ||
268 | + "size_name": "XL" | ||
269 | + }, | ||
270 | + "storage_num": 0 | ||
271 | + } | ||
272 | + ], | ||
273 | + "url": "http://www.yohobuy.com/product/pro_3_3/OVERKILL TianShiShanYangTEE.html" | ||
274 | + }, | ||
275 | + { | ||
276 | + "default_pic": "http://img10.static.yhbimg.com/goodsimg/2011/06/23/04/0158a984a768a351328138ea3671e270de.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
277 | + "id": 5, | ||
278 | + "price": | ||
279 | + { | ||
280 | + "sales_price": 138, | ||
281 | + "yoho_coin_num": 0 | ||
282 | + }, | ||
283 | + "product_name": "MANIA TAKI X 圆领印花短袖TEE", | ||
284 | + "storage": 0, | ||
285 | + "storage_list": | ||
286 | + [ | ||
287 | + { | ||
288 | + "erp_sku_id": 102015, | ||
289 | + "goods_dimension_id": 213, | ||
290 | + "goods_id": 5, | ||
291 | + "product_id": 5, | ||
292 | + "size": | ||
293 | + { | ||
294 | + "size_name": "XS" | ||
295 | + }, | ||
296 | + "storage_num": 0 | ||
297 | + } | ||
298 | + ], | ||
299 | + "url": "http://www.yohobuy.com/product/pro_5_5/MANIA TAKI X YuanLingYinHuaDuanXiuTEE.html" | ||
300 | + } | ||
301 | + ], | ||
302 | + "md5": "d6e4c90434e98a90555d864cf4798679", | ||
303 | + "message": "操作成功" | ||
304 | + } | ||
305 | +``` | ||
306 | + | ||
307 | +### 8、购物车列表 | ||
308 | + | ||
309 | +#### 说明 | ||
310 | + | ||
311 | +#### 请求参数 | ||
312 | +| Param Name | Param Value | Desc| | ||
313 | +| :-------- | --------------:|----:| | ||
314 | +| method | app.Shopping.cart| 请求方法 | | ||
315 | +| shopping_key | 9c101f734768105aafc792d460d12206 | | | ||
316 | +| uid | 10166061 | | | ||
317 | + | ||
318 | +#### 响应内容 | ||
319 | +```json | ||
320 | +{ | ||
321 | + "code": 200, | ||
322 | + "data": { | ||
323 | + "advance_cart_data": { | ||
324 | + "gift_list": [], | ||
325 | + "goods_list": [], | ||
326 | + "price_gift": [], | ||
327 | + "promotion_info": [], | ||
328 | + "shopping_cart_data": { | ||
329 | + "discount_amount": 0, | ||
330 | + "fast_shopping_cost": 0, | ||
331 | + "gain_yoho_coin": 0, | ||
332 | + "goods_count": 0, | ||
333 | + "last_order_amount": 0, | ||
334 | + "order_amount": 0, | ||
335 | + "promotion_formula": "总计¥0.00=商品金额¥0.00", | ||
336 | + "promotion_formula_list": [ | ||
337 | + { | ||
338 | + "promotion": "商品金额", | ||
339 | + "promotion_amount": "¥0.00" | ||
340 | + } | ||
341 | + ], | ||
342 | + "selected_goods_count": 0, | ||
343 | + "shipping_cost": 0, | ||
344 | + "str_discount_amount": "¥0.00", | ||
345 | + "str_order_amount": "¥0.00" | ||
346 | + }, | ||
347 | + "sold_out_goods_list": [] | ||
348 | + }, | ||
349 | + "ordinary_cart_data": { | ||
350 | + "gift_list": [], | ||
351 | + "goods_list": [ | ||
352 | + { | ||
353 | + "attribute": "1", | ||
354 | + "brand_id": "350", | ||
355 | + "buy_limit": 0, | ||
356 | + "buy_number": "1", | ||
357 | + "color_id": "7", | ||
358 | + "color_name": "蓝色", | ||
359 | + "expect_arrival_time": "", | ||
360 | + "fit_promotions": [ | ||
361 | + "8579", | ||
362 | + "8479", | ||
363 | + "8477", | ||
364 | + "8475" | ||
365 | + ], | ||
366 | + "get_yoho_coin": "0", | ||
367 | + "goods_id": "404795", | ||
368 | + "goods_images": "http://....jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
369 | + "goods_type": "ordinary", | ||
370 | + "is_advance": "N", | ||
371 | + "is_jit": "N", | ||
372 | + "is_limited": "N", | ||
373 | + "is_outlets": "N", | ||
374 | + "is_special": "N", | ||
375 | + "last_price": "319.0", | ||
376 | + "last_vip_price": 369, | ||
377 | + "market_price": 369, | ||
378 | + "max_sort_id": "7", | ||
379 | + "middle_sort_id": "49", | ||
380 | + "product_id": 314449, | ||
381 | + "product_name": "MACROPUS 复古帆布系列 双肩包(男女通用)", | ||
382 | + "product_skc": "306652", | ||
383 | + "product_skn": "51174830", | ||
384 | + "product_sku": "967008", | ||
385 | + "promotion_flag": "103", | ||
386 | + "promotion_id": "0", | ||
387 | + "real_price": 319, | ||
388 | + "real_vip_price": 0, | ||
389 | + "sale_price": 0, | ||
390 | + "sales_price": 369, | ||
391 | + "selected": "Y", | ||
392 | + "shop_id": 0, | ||
393 | + "shopping_cart_goods_id": "94305847", | ||
394 | + "shopping_cart_id": "130769237", | ||
395 | + "size_id": "199", | ||
396 | + "size_name": "F", | ||
397 | + "small_sort_id": "152", | ||
398 | + "storage_number": "99", | ||
399 | + "str_subtotal": "¥369.00", | ||
400 | + "subtotal": 369, | ||
401 | + "supplier_id": 0, | ||
402 | + "uid": "10166061", | ||
403 | + "vip1_price": "350.55", | ||
404 | + "vip2_price": "332.10", | ||
405 | + "vip3_price": "324.72", | ||
406 | + "vip_discount": 1, | ||
407 | + "vip_discount_money": 0, | ||
408 | + "vip_discount_type": "1", | ||
409 | + "vip_price": 0, | ||
410 | + "yoho_coin_num": "0" | ||
411 | + } | ||
412 | + ], | ||
413 | + "price_gift": [ | ||
414 | + { | ||
415 | + "gift_price": 39, | ||
416 | + "goods_list": [ | ||
417 | + { | ||
418 | + "goods_images": "http://...jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
419 | + "last_price": 39, | ||
420 | + "market_price": 90, | ||
421 | + "product_id": 269401, | ||
422 | + "product_name": "VOCHIC 欧式多用抗菌艺术砧板", | ||
423 | + "product_skn": 51150012, | ||
424 | + "sales_price": 49, | ||
425 | + "storage_number": 150 | ||
426 | + } | ||
427 | + ], | ||
428 | + "max_select_number": "1", | ||
429 | + "promotion_id": 8475, | ||
430 | + "promotion_title": "【全场39元加价购】", | ||
431 | + "promotion_type": "Needpaygift" | ||
432 | + } | ||
433 | + ], | ||
434 | + "promotion_info": [ | ||
435 | + { | ||
436 | + "cutdown_amount": 50, | ||
437 | + "promotion_id": 8579, | ||
438 | + "promotion_title": "【包配随行】满¥299减¥50", | ||
439 | + "promotion_type": "Cashreduce" | ||
440 | + } | ||
441 | + ], | ||
442 | + "shopping_cart_data": { | ||
443 | + "discount_amount": 50, | ||
444 | + "fast_shopping_cost": 15, | ||
445 | + "gain_yoho_coin": 0, | ||
446 | + "goods_count": 1, | ||
447 | + "last_order_amount": 319, | ||
448 | + "order_amount": 369, | ||
449 | + "promotion_formula": "总计¥319.00=商品金额¥369.00-活动金额¥50.00", | ||
450 | + "promotion_formula_list": [ | ||
451 | + { | ||
452 | + "promotion": "商品金额", | ||
453 | + "promotion_amount": "¥369.00" | ||
454 | + } | ||
455 | + ], | ||
456 | + "selected_goods_count": 1, | ||
457 | + "shipping_cost": 10, | ||
458 | + "str_discount_amount": "¥50.00", | ||
459 | + "str_order_amount": "¥369.00" | ||
460 | + }, | ||
461 | + "sold_out_goods_list": [] | ||
462 | + } | ||
463 | + }, | ||
464 | + "md5": "d222cf08c9d43d0c5f3ab31d278cabd8", | ||
465 | + "message": "cart goods list." | ||
466 | +} | ||
467 | +``` | ||
468 | + | ||
469 | + | ||
470 | +### 9、获取待处理订单总数 | ||
471 | + | ||
472 | +#### 说明 | ||
473 | +根据获取待处理订单总数 | ||
474 | +#### 请求参数 | ||
475 | +| Param Name | Param Value | Desc | | ||
476 | +| ---------- | ----------- | ---- | | ||
477 | +| method | web.SpaceOrders.getPendingOrderCount| 请求方法 | | ||
478 | +| uid | 5772257 | | | ||
479 | + | ||
480 | +#### 响应内容 | ||
481 | + | ||
482 | +```json | ||
483 | +{ | ||
484 | + "code": 200, | ||
485 | + "message": "操作成功" | ||
486 | + "data": { | ||
487 | + "count": 100 | ||
488 | + } | ||
489 | +} | ||
490 | +``` | ||
491 | + | ||
492 | +### 10、历史订单列表 | ||
493 | + | ||
494 | +#### 说明 | ||
495 | +获取历史订单列表 | ||
496 | +#### 请求参数 | ||
497 | +| Param Name | Param Type | Required | Param Value | Desc | | ||
498 | +| :-- | --: | --: | --: | --: | | ||
499 | +| method | string | true | app.SpaceOrders.history| 请求方法 不可变 | | ||
500 | +| uid | int | true | 1 |用户编号 | | ||
501 | +| page | int | false | 1 | 页数 | | ||
502 | +| limit | int | false | 10 | 每页大小 | | ||
503 | + | ||
504 | +#### 响应内容 | ||
505 | +```json | ||
506 | + | ||
507 | + | ||
508 | + { | ||
509 | + "alg": "SALT_MD5", | ||
510 | + "code": 200, | ||
511 | + "data": | ||
512 | + { | ||
513 | + "list": | ||
514 | + [ | ||
515 | + { | ||
516 | + "amount": "257.00", | ||
517 | + "goods_data": "["\u7070\u8272V\u9886\u706f\u82af\u7ed2\u62fc\u8d34\u9488\u7ec7\u523a\u7ee3LOGO\u5f00\u80f8\u7ebf\u886b","L-HOUSE\u53cc\u9762\u62fc\u63a5\u9ed1\u767d\u671d\u9633\u683c\u56f4\u5dfe"]", | ||
518 | + "order_code": "10380864", | ||
519 | + "order_time": "1292069832", | ||
520 | + "payment": "支付宝" | ||
521 | + }, | ||
522 | + { | ||
523 | + "amount": "237.00", | ||
524 | + "goods_data": "["Jasonwood\u5f69\u8272\u978b\u5e26\u5b54\u725b\u4ed4\u4f11\u95f2\u978b"]", | ||
525 | + "order_code": "68971578", | ||
526 | + "order_time": "1310435462", | ||
527 | + "payment": "支付宝" | ||
528 | + } | ||
529 | + ], | ||
530 | + "page": 1, | ||
531 | + "total": 2, | ||
532 | + "total_page": 1 | ||
533 | + }, | ||
534 | + "md5": "684313284330ddc5e2951f7e979d5712", | ||
535 | + "message": "ok" | ||
536 | + } | ||
537 | + | ||
538 | + | ||
539 | +``` | ||
540 | +##### 响应内容描述 | ||
541 | +| Param Name | Param Type | Desc | | ||
542 | +| ---------- | ---------- | ---- | | ||
543 | +| page | int | 当前页数 | | ||
544 | +| total_page | int | 总页数 | | ||
545 | +| total | int | 总记录数 | | ||
546 | +| list | json | 订单列表 | | ||
547 | +| order_code | string |订单编号 | | ||
548 | +| order_time | string |下单时间 | | ||
549 | +| amount | string | 订单金额 | | ||
550 | +| payment | string | 支付方式 | | ||
551 | +| goods_data | string | 订单商品 | |
订单/orders.md
deleted
100644 → 0
1 | -# 订单服务接口 | ||
2 | - | ||
3 | -## 接口列表 | ||
4 | -| 接口名称 | 接口描述 | | ||
5 | -| --------| -------- | | ||
6 | -|[订单列表](#1)|| | ||
7 | -|[订单详情](#2)|| | ||
8 | -|[取消订单](#3)|| | ||
9 | -|[删除订单](#4)|| | ||
10 | -|[确认订单](#5)|| | ||
11 | -|[获取电子票列表](#6)|| | ||
12 | -|[获取YOHO赠品](#7-yoho)|| | ||
13 | -|[购物车列表](#8)|| | ||
14 | -|[获取待处理订单总数](#9)|| | ||
15 | -|[历史订单列表](#10)|| | ||
16 | - | ||
17 | - | ||
18 | - | ||
19 | -## 接口描述 | ||
20 | - | ||
21 | -### 1、订单列表 | ||
22 | - | ||
23 | -#### 说明 | ||
24 | -订单列表 | ||
25 | -#### 请求参数 | ||
26 | -| Param Name | Param Type | Required | Param Value | Desc | | ||
27 | -| :-- | --: | --: | --: | --: | | ||
28 | -| method | string | true | app.SpaceOrders.get| 请求方法 不可变 | | ||
29 | -| uid | int | true | 1 | | | ||
30 | -| type | int | true | 1 | 订单类型 1:全部订单,2:待付款,3:待发货,4:待收货,5:待评论/成功订单,7:失败/取消 | | ||
31 | -| page | int | false | 1 | 页数 | | ||
32 | -| limit | int | false | 10 | 每页大小 | | ||
33 | - | ||
34 | -#### 响应内容 | ||
35 | -```json | ||
36 | -{ | ||
37 | - "code": 200, | ||
38 | - "data": { | ||
39 | - "order_list": [ | ||
40 | - { | ||
41 | - "id": "5528982", | ||
42 | - "order_code": "1519273880", | ||
43 | - "parent_order_code": "0", | ||
44 | - "order_type": 1, | ||
45 | - "refund_status": 0, | ||
46 | - "uid": "5772257", | ||
47 | - "create_time": "1449633428", | ||
48 | - "update_time": "1449633455", | ||
49 | - "pay_expire": "2015-12-09 13:57:08", | ||
50 | - "payment": "2", | ||
51 | - "payment_status": "Y", | ||
52 | - "payment_type": "1", | ||
53 | - "payment_type_str": "在线支付", | ||
54 | - "status": 1, | ||
55 | - "status_str": "已付款", | ||
56 | - "attribute": "5", | ||
57 | - "is_cancel": "N", | ||
58 | - "is_comment": "N", | ||
59 | - "amount": "1.00", | ||
60 | - "shipping_cost": "0.00", | ||
61 | - "use_limit_code": "N", | ||
62 | - "user_confirm_paid": "N", | ||
63 | - "buy_total": 1, | ||
64 | - "order_goods": [ | ||
65 | - { | ||
66 | - "buy_number": 1, | ||
67 | - "goods_id": 125106, | ||
68 | - "goods_image": "http://img10.static.yhbimg.com/goodsimg/2014/06/19/02/0118c2721e4f2219f69539dd389f4bacac.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
69 | - "goods_price": "1.00", | ||
70 | - "goods_type": "ordinary", | ||
71 | - "goods_amount": "1.00", | ||
72 | - "product_id": 84230, | ||
73 | - "product_name": "004 满版龙纹迷彩七分休闲裤", | ||
74 | - "product_skn": 51055461, | ||
75 | - "refund_num": 0, | ||
76 | - "size_name": "M", | ||
77 | - "color_name": "彩色", | ||
78 | - "cn_alphabet": "004QiFenBuKu004PA095", | ||
79 | - "expect_arrival_time": "" | ||
80 | - } | ||
81 | - ] | ||
82 | - } | ||
83 | - ], | ||
84 | - "page": 1, | ||
85 | - "page_total": 27, | ||
86 | - "total": 265 | ||
87 | - }, | ||
88 | - "message": "ok" | ||
89 | -} | ||
90 | -``` | ||
91 | -##### 响应内容描述 | ||
92 | -| Param Name | Param Type | Desc | | ||
93 | -| ---------- | ---------- | ---- | | ||
94 | -| page | int | 当前页数 | | ||
95 | -| page_total | int | 总页数 | | ||
96 | -| total | int | 总记录数 | | ||
97 | -| order_list | json | 订单列表 | | ||
98 | -| id | string | | | ||
99 | -| order_code | string | | | ||
100 | -| parent_order_code | string | | | ||
101 | -| order_type | int | 订单类型 1:有货,3:iphone,4:android,5:淘宝,6:h5,7:是换货,9:渠道,20:ipad | | ||
102 | -| refund_status | int | 退货状态(该字段基本不用了)0:正常订单,1:退货审核中,2:退货审核不通过,3:退货审核通过,4:退货商品寄回,5:退货库房入库,6:财务退款,7:完成 | | ||
103 | -| uid | string | | | ||
104 | -| create_time| string | 创建时间 | | ||
105 | -| update_time| string | 更新时间 | | ||
106 | -| pay_expire | string | 支付超期时间 | | ||
107 | -| payment | string | 支付方式编号 | | ||
108 | -| payment_status | string | 支付状态 Y:已支付,N:未支付 | | ||
109 | -| payment_type | string | 支付方式 1:在线支付,2:货到付款,3:现金支付,4:抵消支付 | | ||
110 | -| status | int | 状态 0:待付款,1-3:待发货,4-5:待收货(0:未付款,1:已付款,2:备货中,3:配货中,4:已发货,5:运输中,6:已完成)| | ||
111 | -| status_str | string | 状态名称 | | ||
112 | -| is_cancel | string | 是否取消 Y:已取消,N:未取消 | | ||
113 | -| is_comment | string | 是否评论 Y:已评论,N:未评论 | | ||
114 | -| amount | string | 订单金额 | | ||
115 | -| shipping_cost | string | 运费 | | ||
116 | -| use_limit_code | string | 使用限购码 Y:使用,N:未使用 | | ||
117 | -| user_confirm_paid| string | 用户确认支付 Y:是,N:否 | | ||
118 | -| buy_total | int | 购买商品数量 | | ||
119 | -| order_goods| json | 购买商品 | | ||
120 | -| buy_number | int | 购买商品数量 | | ||
121 | -| goods_id | int | | | ||
122 | -| goods_image| string | 商品默认图片 | | ||
123 | -| goods_price| string | 商品价格 | | ||
124 | -| goods_type | string | 商品类型 ordinary:普通商品 | | ||
125 | -| goods_amount | string | 商品总价格 | | ||
126 | -| product_id | int | | | ||
127 | -| product_name | string | 商品名称 | | ||
128 | -| product_skn| int | 商品skn | | ||
129 | -| refund_num | int | 退货数量 | | ||
130 | -| size_name | string | 商品尺寸 | | ||
131 | -| color_name | string | 商品颜色 | | ||
132 | -| cn_alphabet| string | | | ||
133 | -| expect_arrival_time | string | 预期到货时间 | | ||
134 | - | ||
135 | - | ||
136 | -### 3、取消订单 | ||
137 | - | ||
138 | -#### 说明 | ||
139 | -根据订单号取消订单 | ||
140 | -#### 请求参数 | ||
141 | -| Param Name | Param Value | Desc| | ||
142 | -| :-------- | --------------:|----:| | ||
143 | -| method | app.SpaceOrders.close| 请求方法 | | ||
144 | -| order_code | 1061003682 | 订单号 | | ||
145 | - | ||
146 | -#### 响应内容 | ||
147 | -```json | ||
148 | -{ | ||
149 | -"code":200, | ||
150 | -"message":"订单取消成功" | ||
151 | -} | ||
152 | -``` | ||
153 | - | ||
154 | -### 5、确认订单 | ||
155 | - | ||
156 | -#### 说明 | ||
157 | -根据订单号确认订单 | ||
158 | -#### 请求参数 | ||
159 | -| Param Name | Param Value | Desc| | ||
160 | -| :-------- | --------------:|----:| | ||
161 | -| method | app.SpaceOrders.confirm| 请求方法 | | ||
162 | -| order_code | 1061003682 | 订单号 | | ||
163 | - | ||
164 | -#### 响应内容 | ||
165 | -```json | ||
166 | -{ | ||
167 | -"code":200, | ||
168 | -"message":"订单确认成功" | ||
169 | -} | ||
170 | -``` | ||
171 | - | ||
172 | - | ||
173 | -### 6、获取电子票列表 | ||
174 | - | ||
175 | - | ||
176 | - | ||
177 | -#### 说明 | ||
178 | -根据订单号获取电子票列表 | ||
179 | -#### 请求参数 | ||
180 | -| Param Name | Param Value | Desc| | ||
181 | -| :-------- | --------------:|----:| | ||
182 | -| method | app.SpaceOrders.getQrByOrderCode| 请求方法 | | ||
183 | -| order_code | 1061003682 | 订单号 | | ||
184 | - | ||
185 | -#### 响应内容 | ||
186 | -```json | ||
187 | -{ | ||
188 | - "code": 200, | ||
189 | - "data": { | ||
190 | - "ticks": [{ | ||
191 | - "ticket_code":"8611779901", | ||
192 | - "qr_image":"http://img06.static.yhbimg.com/yohood/4063/ticket-8611779901-1-40-1-1.jpg", | ||
193 | - "passkit":"Y" | ||
194 | - }], | ||
195 | - "title": "FURY ANIMALS Normal迷彩系列BUNNY短袖TEE" | ||
196 | - }, | ||
197 | - "md5": "24aff7ba505dccb63a14b5d78ae22821", | ||
198 | - "message": "ok" | ||
199 | -} | ||
200 | -``` | ||
201 | -##### 响应内容描述 | ||
202 | -| Param Name | Param Type | Desc | | ||
203 | -| ---------- | ---------- | ---- | | ||
204 | -| title | string | 商品名称 | | ||
205 | -| ticks | json | 电子票 | | ||
206 | -| ticket_code| string | 电子票code | | ||
207 | -| qr_image | string | 电子票code二维码图片路径 | | ||
208 | -| passkit | string | | | ||
209 | - | ||
210 | -### 7、获取YOHO赠品 | ||
211 | - | ||
212 | -#### 说明 | ||
213 | -根据skn获取yohoGift | ||
214 | -#### 请求参数 | ||
215 | -| Param Name | Param Value | Desc| | ||
216 | -| :-------- | --------------:|----:| | ||
217 | -| method | web.Shopping.yohoGift| 请求方法 | | ||
218 | -| skn_list | [50001829,50002280]| skn列表 | | ||
219 | - | ||
220 | -#### 响应内容 | ||
221 | -```json | ||
222 | - { | ||
223 | - "alg": "SALT_MD5", | ||
224 | - "code": 200, | ||
225 | - "data": | ||
226 | - [ | ||
227 | - { | ||
228 | - "default_pic": "http://img11.static.yhbimg.com/goodsimg/2012/03/02/17/019a0794f1eb1ad77ce5d8a2c2b2cf2e50.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
229 | - "id": 3, | ||
230 | - "price": | ||
231 | - { | ||
232 | - "sales_price": 250, | ||
233 | - "yoho_coin_num": 0 | ||
234 | - }, | ||
235 | - "product_name": "OVERKILL 天使山羊TEE", | ||
236 | - "storage": 0, | ||
237 | - "storage_list": | ||
238 | - [ | ||
239 | - { | ||
240 | - "erp_sku_id": 102009, | ||
241 | - "goods_dimension_id": 201, | ||
242 | - "goods_id": 3, | ||
243 | - "product_id": 3, | ||
244 | - "size": | ||
245 | - { | ||
246 | - "size_name": "L" | ||
247 | - }, | ||
248 | - "storage_num": 0 | ||
249 | - }, | ||
250 | - { | ||
251 | - "erp_sku_id": 102010, | ||
252 | - "goods_dimension_id": 203, | ||
253 | - "goods_id": 3, | ||
254 | - "product_id": 3, | ||
255 | - "size": | ||
256 | - { | ||
257 | - "size_name": "M" | ||
258 | - }, | ||
259 | - "storage_num": 0 | ||
260 | - }, | ||
261 | - { | ||
262 | - "erp_sku_id": 102012, | ||
263 | - "goods_dimension_id": 211, | ||
264 | - "goods_id": 3, | ||
265 | - "product_id": 3, | ||
266 | - "size": | ||
267 | - { | ||
268 | - "size_name": "XL" | ||
269 | - }, | ||
270 | - "storage_num": 0 | ||
271 | - } | ||
272 | - ], | ||
273 | - "url": "http://www.yohobuy.com/product/pro_3_3/OVERKILL TianShiShanYangTEE.html" | ||
274 | - }, | ||
275 | - { | ||
276 | - "default_pic": "http://img10.static.yhbimg.com/goodsimg/2011/06/23/04/0158a984a768a351328138ea3671e270de.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
277 | - "id": 5, | ||
278 | - "price": | ||
279 | - { | ||
280 | - "sales_price": 138, | ||
281 | - "yoho_coin_num": 0 | ||
282 | - }, | ||
283 | - "product_name": "MANIA TAKI X 圆领印花短袖TEE", | ||
284 | - "storage": 0, | ||
285 | - "storage_list": | ||
286 | - [ | ||
287 | - { | ||
288 | - "erp_sku_id": 102015, | ||
289 | - "goods_dimension_id": 213, | ||
290 | - "goods_id": 5, | ||
291 | - "product_id": 5, | ||
292 | - "size": | ||
293 | - { | ||
294 | - "size_name": "XS" | ||
295 | - }, | ||
296 | - "storage_num": 0 | ||
297 | - } | ||
298 | - ], | ||
299 | - "url": "http://www.yohobuy.com/product/pro_5_5/MANIA TAKI X YuanLingYinHuaDuanXiuTEE.html" | ||
300 | - } | ||
301 | - ], | ||
302 | - "md5": "d6e4c90434e98a90555d864cf4798679", | ||
303 | - "message": "操作成功" | ||
304 | - } | ||
305 | -``` | ||
306 | - | ||
307 | -### 8、购物车列表 | ||
308 | - | ||
309 | -#### 说明 | ||
310 | - | ||
311 | -#### 请求参数 | ||
312 | -| Param Name | Param Value | Desc| | ||
313 | -| :-------- | --------------:|----:| | ||
314 | -| method | app.Shopping.cart| 请求方法 | | ||
315 | -| shopping_key | 9c101f734768105aafc792d460d12206 | | | ||
316 | -| uid | 10166061 | | | ||
317 | - | ||
318 | -#### 响应内容 | ||
319 | -```json | ||
320 | -{ | ||
321 | - "code": 200, | ||
322 | - "data": { | ||
323 | - "advance_cart_data": { | ||
324 | - "gift_list": [], | ||
325 | - "goods_list": [], | ||
326 | - "price_gift": [], | ||
327 | - "promotion_info": [], | ||
328 | - "shopping_cart_data": { | ||
329 | - "discount_amount": 0, | ||
330 | - "fast_shopping_cost": 0, | ||
331 | - "gain_yoho_coin": 0, | ||
332 | - "goods_count": 0, | ||
333 | - "last_order_amount": 0, | ||
334 | - "order_amount": 0, | ||
335 | - "promotion_formula": "总计¥0.00=商品金额¥0.00", | ||
336 | - "promotion_formula_list": [ | ||
337 | - { | ||
338 | - "promotion": "商品金额", | ||
339 | - "promotion_amount": "¥0.00" | ||
340 | - } | ||
341 | - ], | ||
342 | - "selected_goods_count": 0, | ||
343 | - "shipping_cost": 0, | ||
344 | - "str_discount_amount": "¥0.00", | ||
345 | - "str_order_amount": "¥0.00" | ||
346 | - }, | ||
347 | - "sold_out_goods_list": [] | ||
348 | - }, | ||
349 | - "ordinary_cart_data": { | ||
350 | - "gift_list": [], | ||
351 | - "goods_list": [ | ||
352 | - { | ||
353 | - "attribute": "1", | ||
354 | - "brand_id": "350", | ||
355 | - "buy_limit": 0, | ||
356 | - "buy_number": "1", | ||
357 | - "color_id": "7", | ||
358 | - "color_name": "蓝色", | ||
359 | - "expect_arrival_time": "", | ||
360 | - "fit_promotions": [ | ||
361 | - "8579", | ||
362 | - "8479", | ||
363 | - "8477", | ||
364 | - "8475" | ||
365 | - ], | ||
366 | - "get_yoho_coin": "0", | ||
367 | - "goods_id": "404795", | ||
368 | - "goods_images": "http://....jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
369 | - "goods_type": "ordinary", | ||
370 | - "is_advance": "N", | ||
371 | - "is_jit": "N", | ||
372 | - "is_limited": "N", | ||
373 | - "is_outlets": "N", | ||
374 | - "is_special": "N", | ||
375 | - "last_price": "319.0", | ||
376 | - "last_vip_price": 369, | ||
377 | - "market_price": 369, | ||
378 | - "max_sort_id": "7", | ||
379 | - "middle_sort_id": "49", | ||
380 | - "product_id": 314449, | ||
381 | - "product_name": "MACROPUS 复古帆布系列 双肩包(男女通用)", | ||
382 | - "product_skc": "306652", | ||
383 | - "product_skn": "51174830", | ||
384 | - "product_sku": "967008", | ||
385 | - "promotion_flag": "103", | ||
386 | - "promotion_id": "0", | ||
387 | - "real_price": 319, | ||
388 | - "real_vip_price": 0, | ||
389 | - "sale_price": 0, | ||
390 | - "sales_price": 369, | ||
391 | - "selected": "Y", | ||
392 | - "shop_id": 0, | ||
393 | - "shopping_cart_goods_id": "94305847", | ||
394 | - "shopping_cart_id": "130769237", | ||
395 | - "size_id": "199", | ||
396 | - "size_name": "F", | ||
397 | - "small_sort_id": "152", | ||
398 | - "storage_number": "99", | ||
399 | - "str_subtotal": "¥369.00", | ||
400 | - "subtotal": 369, | ||
401 | - "supplier_id": 0, | ||
402 | - "uid": "10166061", | ||
403 | - "vip1_price": "350.55", | ||
404 | - "vip2_price": "332.10", | ||
405 | - "vip3_price": "324.72", | ||
406 | - "vip_discount": 1, | ||
407 | - "vip_discount_money": 0, | ||
408 | - "vip_discount_type": "1", | ||
409 | - "vip_price": 0, | ||
410 | - "yoho_coin_num": "0" | ||
411 | - } | ||
412 | - ], | ||
413 | - "price_gift": [ | ||
414 | - { | ||
415 | - "gift_price": 39, | ||
416 | - "goods_list": [ | ||
417 | - { | ||
418 | - "goods_images": "http://...jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80", | ||
419 | - "last_price": 39, | ||
420 | - "market_price": 90, | ||
421 | - "product_id": 269401, | ||
422 | - "product_name": "VOCHIC 欧式多用抗菌艺术砧板", | ||
423 | - "product_skn": 51150012, | ||
424 | - "sales_price": 49, | ||
425 | - "storage_number": 150 | ||
426 | - } | ||
427 | - ], | ||
428 | - "max_select_number": "1", | ||
429 | - "promotion_id": 8475, | ||
430 | - "promotion_title": "【全场39元加价购】", | ||
431 | - "promotion_type": "Needpaygift" | ||
432 | - } | ||
433 | - ], | ||
434 | - "promotion_info": [ | ||
435 | - { | ||
436 | - "cutdown_amount": 50, | ||
437 | - "promotion_id": 8579, | ||
438 | - "promotion_title": "【包配随行】满¥299减¥50", | ||
439 | - "promotion_type": "Cashreduce" | ||
440 | - } | ||
441 | - ], | ||
442 | - "shopping_cart_data": { | ||
443 | - "discount_amount": 50, | ||
444 | - "fast_shopping_cost": 15, | ||
445 | - "gain_yoho_coin": 0, | ||
446 | - "goods_count": 1, | ||
447 | - "last_order_amount": 319, | ||
448 | - "order_amount": 369, | ||
449 | - "promotion_formula": "总计¥319.00=商品金额¥369.00-活动金额¥50.00", | ||
450 | - "promotion_formula_list": [ | ||
451 | - { | ||
452 | - "promotion": "商品金额", | ||
453 | - "promotion_amount": "¥369.00" | ||
454 | - } | ||
455 | - ], | ||
456 | - "selected_goods_count": 1, | ||
457 | - "shipping_cost": 10, | ||
458 | - "str_discount_amount": "¥50.00", | ||
459 | - "str_order_amount": "¥369.00" | ||
460 | - }, | ||
461 | - "sold_out_goods_list": [] | ||
462 | - } | ||
463 | - }, | ||
464 | - "md5": "d222cf08c9d43d0c5f3ab31d278cabd8", | ||
465 | - "message": "cart goods list." | ||
466 | -} | ||
467 | -``` | ||
468 | - | ||
469 | - | ||
470 | -### 9、获取待处理订单总数 | ||
471 | - | ||
472 | -#### 说明 | ||
473 | -根据获取待处理订单总数 | ||
474 | -#### 请求参数 | ||
475 | -| Param Name | Param Value | Desc | | ||
476 | -| ---------- | ----------- | ---- | | ||
477 | -| method | web.SpaceOrders.getPendingOrderCount| 请求方法 | | ||
478 | -| uid | 5772257 | | | ||
479 | - | ||
480 | -#### 响应内容 | ||
481 | - | ||
482 | -```json | ||
483 | -{ | ||
484 | - "code": 200, | ||
485 | - "message": "操作成功" | ||
486 | - "data": { | ||
487 | - "count": 100 | ||
488 | - } | ||
489 | -} | ||
490 | -``` | ||
491 | - | ||
492 | -### 10、历史订单列表 | ||
493 | - | ||
494 | -#### 说明 | ||
495 | -获取历史订单列表 | ||
496 | -#### 请求参数 | ||
497 | -| Param Name | Param Type | Required | Param Value | Desc | | ||
498 | -| :-- | --: | --: | --: | --: | | ||
499 | -| method | string | true | app.SpaceOrders.history| 请求方法 不可变 | | ||
500 | -| uid | int | true | 1 |用户编号 | | ||
501 | -| page | int | false | 1 | 页数 | | ||
502 | -| limit | int | false | 10 | 每页大小 | | ||
503 | - | ||
504 | -#### 响应内容 | ||
505 | -```json | ||
506 | - | ||
507 | - | ||
508 | - { | ||
509 | - "alg": "SALT_MD5", | ||
510 | - "code": 200, | ||
511 | - "data": | ||
512 | - { | ||
513 | - "list": | ||
514 | - [ | ||
515 | - { | ||
516 | - "amount": "257.00", | ||
517 | - "goods_data": "["\u7070\u8272V\u9886\u706f\u82af\u7ed2\u62fc\u8d34\u9488\u7ec7\u523a\u7ee3LOGO\u5f00\u80f8\u7ebf\u886b","L-HOUSE\u53cc\u9762\u62fc\u63a5\u9ed1\u767d\u671d\u9633\u683c\u56f4\u5dfe"]", | ||
518 | - "order_code": "10380864", | ||
519 | - "order_time": "1292069832", | ||
520 | - "payment": "支付宝" | ||
521 | - }, | ||
522 | - { | ||
523 | - "amount": "237.00", | ||
524 | - "goods_data": "["Jasonwood\u5f69\u8272\u978b\u5e26\u5b54\u725b\u4ed4\u4f11\u95f2\u978b"]", | ||
525 | - "order_code": "68971578", | ||
526 | - "order_time": "1310435462", | ||
527 | - "payment": "支付宝" | ||
528 | - } | ||
529 | - ], | ||
530 | - "page": 1, | ||
531 | - "total": 2, | ||
532 | - "total_page": 1 | ||
533 | - }, | ||
534 | - "md5": "684313284330ddc5e2951f7e979d5712", | ||
535 | - "message": "ok" | ||
536 | - } | ||
537 | - | ||
538 | - | ||
539 | -``` | ||
540 | -##### 响应内容描述 | ||
541 | -| Param Name | Param Type | Desc | | ||
542 | -| ---------- | ---------- | ---- | | ||
543 | -| page | int | 当前页数 | | ||
544 | -| total_page | int | 总页数 | | ||
545 | -| total | int | 总记录数 | | ||
546 | -| list | json | 订单列表 | | ||
547 | -| order_code | string |订单编号 | | ||
548 | -| order_time | string |下单时间 | | ||
549 | -| amount | string | 订单金额 | | ||
550 | -| payment | string | 支付方式 | | ||
551 | -| goods_data | string | 订单商品 | |
-
Please register or login to post a comment