获取订单详情数据
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取订单详情数据</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://dmg.nex-i.cn/v2/order/detail</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>请求头:</strong></p>
<ul>
<li>Content-Type:application/json</li>
<li>token: {登录时获取的token}</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>
<th>默认</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">订单ID</td>
<td style="text-align: left;">id</td>
<td style="text-align: left;">int</td>
<td>是</td>
<td></td>
<td>111</td>
<td></td>
</tr>
</tbody>
</table>
<p><strong>请求示例:</strong></p>
<pre><code>{
"id":225540
}</code></pre>
<p><strong>返回示例:</strong></p>
<pre><code>{
"code": 10000,
"data": {
"id": 426810,
"uid": 12821,
"order_no": "T210909121003593121",
"device_id": 4148,
"discount": 0,
"amount": 0,
"lock_status": 2,
"goods_status": 1,
"pay_status": 3,
"pay_type": 2,
"verify": 2,
"create_time": 1631160603,
"goods": [],
"medias": {
"videos": [
"https://dmg-video.oss-cn-hangzhou.aliyuncs.com/2021-09-09_12:10:03-869012040737756--1.mp4",
"https://dmg-video.oss-cn-hangzhou.aliyuncs.com/2021-09-09_12:10:03-869012040737756--2.mp4"
]
},
"device": {
"id": 4148,
"name": "办公室测试",
"type": 2,
"operator_id": 122,
"group_id": 0,
"api_id": 19,
"box_id": "869012040737756",
"x": 0,
"y": 0,
"province": "",
"city": "",
"district": "",
"location": "",
"video_url": "",
"status": 1,
"stock_num": 11,
"replenish_stock_num": 13,
"create_time": 1622598319,
"is_enable": 1
},
"user": {
"id": 12821,
"phone": "13922953712",
"nickname": "Leon Lee",
"sex": 1,
"language": "zh_CN",
"city": "Hefei",
"province": "Anhui",
"country": "China",
"headimgurl": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLSmd4WHHpefxRezCVaJbEa8DJKicSicxibm5me4LlPldic71YeVRNy7xF46HRZesw7DwIuteUA0MoX7g/132"
}
},
"msg": "Success"
}</code></pre>
<p><strong>Java请求示例</strong> </p>
<pre><code>OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"id\":426810}");
Request request = new Request.Builder()
.url("http://admin.nex-i.cn/api/order/detail")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("token", "W5alSp5f2c123FpqWGIlkxmy0ma7hFMvvIS")
.build();
Response response = client.newCall(request).execute();</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>