黑马优购


历史订单查询

<p>​<br /> <strong>简要描述:</strong> </p> <ul> <li>历史订单查询</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>https://api-hmugo-web.itheima.net/api/public/v1/my/orders/all</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET</li> </ul> <p><strong>请求头参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>Authorization</td> <td>是</td> <td>string</td> <td>用户登录成功获取的token值</td> </tr> </tbody> </table> <p><strong>请求体参数</strong>:</p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>type</td> <td>是</td> <td>number</td> <td>1:全部订单 2:待付款 3:待发货</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code class="language-json">{ "message": { "count": 1, "orders": [ { "order_id": 428, "user_id": 23, "order_number": "HMDD20190802000000000428", "order_price": 13999, "order_pay": "0", "is_send": "否", "trade_no": "", "order_fapiao_title": "个人", "order_fapiao_company": "", "order_fapiao_content": "", "consignee_addr": "广东省广州市海珠区新港中路397号", "pay_status": "1", "create_time": 1564731518, "update_time": 1564731518, "order_detail": null, "goods": [ { "id": 717, "order_id": 428, "goods_id": 43986, "goods_price": 13999, "goods_number": 1, "goods_total_price": 13999, "goods_name": "海信(Hisense)LED55MU9600X3DUC 55英寸 4K超高清量子点电视 ULED画质 VIDAA系统", "goods_small_logo": "http://image5.suning.cn/uimg/b2c/newcatentries/0000000000-000000000160455569_1_400x400.jpg" } ], "total_count": 1, "total_price": 13999 } ] }, "meta": { "msg": "获取订单列表成功", "status": 200 } }</code></pre>

页面列表

ITEM_HTML