分析二維碼圖片
## 接口名稱
分析二維碼圖片
## 接口描述
解析二維碼圖片,查詢标識信息和(hé)标識的時(shí)間(jiān)戳。
## 接口地址
https://idr.gdsinsing.com/v2/parse-qr-image
## 調用方式
|方法|數(shù)據類型|
|-|-|
|[ ] GET|[X] form-data|
|[X] POST|[ ] x-www-form-urlencoded|
|[ ] PUT|[ ] raw|
|[ ] DELETE||
## 參數(shù)說明(míng)
|參數(shù)名|位置|類型|必填|說明(míng)|
|-|-|-|-|-|
|file|body|file|是|二維碼圖片|
## 返回結果
|參數(shù)名|位置|類型|說明(míng)|
|-|-|-|-|
|success||Boolean|調用結果(true:失敗,false:成功)|
|data||String|二維碼信息詳情|
|>url|data|Object|二維碼url|
|>handle|data|String|标識碼|
|>stamp|data|String|時(shí)間(jiān)戳|
|msg||String|描述信息|
|ex||String|異常信息|
|>code|ex|String|錯誤碼|
|>reson|ex|String|錯誤原因|
|>resolve|ex|String|解決辦法|
#### 成功返回
```json
{
"success": true,
"data": {
"url": "https://idr.gdsinsing.com/detail?id=88.168.288/12345678901234567890123456789012345678901234567890123456789012345678901234567890&1678096495501",
"handle": "88.168.288/12345678901234567890123456789012345678901234567890123456789012345678901234567890",
"stamp": "1678096495501"
},
"msg": "success",
"ex": null
}
```
#### 失敗返回
```json
{
"success": false,
"data": null,
"msg": "二維碼內(nèi)容不合法",
"ex": {
"code": "00300016",
"reason": "二維碼內(nèi)容不合法",
"resolve": "請(qǐng)檢查傳入內(nèi)容"
}
}
```
## 調用例子
``` JavaScript
var form = new FormData();
form.append("file", fileInput.files[0], "file");
var settings = {
"url": "https://idr.gdsinsing.com/v2/parse-qr-image",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
```