载体标识码查询
## 接口名称
数据验真
## 接口描述
验证二维码内容的真实性。
## 接口地址
https://idr.gdsinsing.com/v2/query-handle-by-code
## 调用方式
|方法|数据类型|
|-|-|
|[ ] GET|[X] form-data|
|[X] POST|[ ] x-www-form-urlencoded|
|[ ] PUT|[ ] raw|
|[ ] DELETE||
## 参数说明
|参数名|位置|类型|必填|说明|
|-|-|-|-|-|
|type|body|String|是|载体类型|
|code|body|String|是|载体编号|
> 载体码类型type取值
>> RFID
>> ECODE
>> OID
>> GS1
>> MA
>> NFC
>> CUS
## 返回结果
|参数名|位置|类型|说明|
|-|-|-|-|
|success||Boolean|调用结果(true:失败,false:成功)|
|data||List|载体标识信息列表|
|>code|data|String|载体编号|
|>type|data|String|载体类型|
|>prefix|data|String|载体前缀|
|>handle|data|String|载体标识码|
|msg||String|描述信息|
|ex||String|异常信息|
|>code|ex|String|错误码|
|>reson|ex|String|错误原因|
|>resolve|ex|String|解决办法|
#### 成功返回
```json
{
"success": true,
"data": [
{
"code": "794389438903490093423",
"type": "RFID",
"prefix": "88.168.88",
"handle": "88.168.88/1681888762733"
}
],
"msg": "success",
"ex": null
}
```
#### 失败返回
```json
{
"success": false,
"data": null,
"msg": "未查询到载体标识码",
"ex": {
"code": "00300017",
"reason": "未查询到载体标识码",
"resolve": "请检查传入内容"
}
}
```
## 调用例子
``` JavaScript
var form = new FormData();
form.append("type", "RFID");
form.append("code", "794389438903490093423");
var settings = {
"url": "https://idr.gdsinsing.com/v2//query-handle-by-code",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
```