Weteach-小程序


订单详情

<p><strong>简要描述:</strong> </p> <ul> <li>订单详情</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/api/cli/order/{id}</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>订单ID</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>普通订单: { "result": "success", "data": { "id": 6, "order_number": "201807191353200c9e90239eb421b047", "commodity_id": 7, "user_id": 1, "marketer_id": null, "marketer_rate": null, "price": 0.1, "pay_type": "wachat_app", "pay_status": "success", "order_at": "2018-07-19 13:53:20", "created_at": "2018-07-19 13:53:20", "parent_id": 4, "remark": null, "expire_at": null, "pay_at": null, "commodities": [ { "name": "课程A", "code": "dad66ea9c615a0d6", "price": 0.1, "cover": "" } ], "coupon_price": 0 }, "message": "操作成功" } 预定订单: { "result": "success", "data": { "id": 9, "order_number": "1533095077162502", "commodity_id": 14, "user_id": 1, "marketer_id": null, "marketer_rate": null, "price": 1, "pay_type": "wechat_open", "pay_status": "wait", "order_at": "2018-08-01 11:44:37", "created_at": "2018-08-01 11:44:37", "parent_id": null, "remark": "order", "expire_at": null, "pay_at": null, "orders": { "deposit": { "price": 10, "pay_type": "wechat_open", "pay_at": null, "order_at": "2018-08-01 11:44:37", "pay_status": "wait" }, "tail": { "price": 0.9, "pay_type": null, "pay_at": null, "order_at": null, "pay_status": "wait" } }, "pre_sale": { "id": 1, "commodity_id": 14, "pre_price": 1, "deposit": 0.1, "pre_start_at": "2018-07-30 10:00:00", "pre_end_at": "2018-08-15 10:00:00", "pay_end_at": "2018-08-31 16:00:29", "created_at": "2018-07-31 15:25:34" }, "commodities": [ { "name": "课程A", "code": "b8999dfc1d0683f4", "price": 1, "cover": "" } ], "coupon_price": 0 }, "message": "操作成功" } 团购订单 { "result": "success", "data": { "id": 1480, "order_number": "1535971963964243", "commodity_id": 296, "user_id": 96, "marketer_id": null, "price": 0.04, "pay_type": "wechat_open", "pay_status": "success", "order_at": "2018-09-03 18:52:43", "created_at": "2018-09-03 18:52:43", "marketer_rate": null, "parent_id": null, "user_coupon_id": null, "remark": "groupon", "expire_at": "2018-09-03 18:53:43", "pay_at": null, "msg": null, "groupon": { "id": 1, "commodity_id": 296, "user_id": 43, "price": 1000, "member_count": 1, "max_count": 3, "expire_at": "2018-09-06 16:08:40", "status": "active", "created_at": null, "user_count": 3, "pay_user_count": 3, "members": [ { "id": 2, "groupon_id": 1, "user_id": 96, "order_id": 1480, "commodity_id": 296, "status": "success", "nickname": "wuyan", "avatar": "https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJYLeVmvz6IxdicbORT7LwnYYAYfzZn3BqLlRJ07Sib7fDE3poHCmd1ZiczXpv6H3iaiaQDSuywiced4LJA/132", "created_at": null }, { "id": 3, "groupon_id": 1, "user_id": null, "order_id": null, "commodity_id": 296, "status": "success", "nickname": "我是机器人", "avatar": null, "created_at": null }, { "id": 4, "groupon_id": 1, "user_id": 64, "order_id": 1111, "commodity_id": 296, "status": "success", "nickname": "ó", "avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/3qUuuVRJ5KhdyfoBVqNvIUl3TkvIrseOU2XTgHwXnTOWD3nkeuCeSwicKHHVAmu6bstJk18eu7LAYho4esRAr7w/132", "created_at": null } ] }, "commodities": [ { "id": 672, "order_id": 1480, "commodity_id": 296, "code": "edf01b372a8d01eb", "name": "【语文】沪教版听写 三年级(上册)", "cover": "http://learn-10047330.file.myqcloud.com/article/03ede781-1e3e-4c3e-8555-b9461d7f278c.jpg", "pay_price": 0.04, "price": 0.06, "coupon_id": null, "remark": "main", "created_at": "2018-09-03 18:52:43", "list_cover": null } ], "coupon_price": 0 }, "message": "操作成功", "ct": 1536141918 } </code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">groupid</td> <td style="text-align: left;">int</td> <td>用户组id,1:超级管理员;2:普通用户</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul> <p>欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML