数据验真
## 接口名称
数据验真
## 接口描述
验证二维码内容的真实性。
## 接口地址
https://idr.gdsinsing.com/v2/verify-data
## 调用方式
|方法|数据类型|
|-|-|
|[ ] GET|[X] form-data|
|[X] POST|[ ] x-www-form-urlencoded|
|[ ] PUT|[ ] raw|
|[ ] DELETE||
## 参数说明
|参数名|位置|类型|必填|说明|
|-|-|-|-|-|
|url|body|String|是|二维码url内容|
|location|body|String|否|位置信息,Json字符串"{'longitude':'经度','latitude':'纬度'}"|
## 返回结果
|参数名|位置|类型|说明|
|-|-|-|-|
|success||Boolean|调用结果(true:失败,false:成功)|
|data||String|二维码信息详情|
|>url|data|String|二维码url|
|>handle|data|String|标识码|
|>stamp|data|String|时间戳|
|msg||String|描述信息|
|ex||String|异常信息|
|>code|ex|String|错误码|
|>reson|ex|String|错误原因|
|>resolve|ex|String|解决办法|
#### 成功返回
```json
{
"success": true,
"data": {
"verifyResult": "true",
"verifiedTimes": 35,
"verifyTime": "2023-04-27 02:27:17",
"verifyLocation": "云南省楚雄彝族自治州"
},
"msg": "success",
"ex": null
}
```
#### 失败返回
```json
{
"success": false,
"data": null,
"msg": "二维码内容不合法",
"ex": {
"code": "00300016",
"reason": "二维码内容不合法",
"resolve": "请检查传入内容"
}
}
```
## 调用例子
``` JavaScript
var form = new FormData();
form.append("url", "二维码url内容");
form.append("location", "{'longitude':'100.82694','latitude':'25.02776'}");
var settings = {
"url": "https://test-idr.gdsinsing.com/v2/verify-data",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
```