分析二维码内容

## 接口名称 分析二维码图片 ## 接口描述 解析二维码url内容,查询标识信息和标识的时间戳。 ## 接口地址 https://idr.gdsinsing.com/v2/parse-qr-content ## 调用方式 |方法|数据类型| |-|-| |[ ] GET|[X] form-data| |[X] POST|[ ] x-www-form-urlencoded| |[ ] PUT|[ ] raw| |[ ] DELETE|| ## 参数说明 |参数名|位置|类型|必填|说明| |-|-|-|-|-| |url|body|String|是|二维码url内容| ## 返回结果 |参数名|位置|类型|说明| |-|-|-|-| |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": { "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": "二维码内容不合法", "ex": { "code": "00300016", "reason": "二维码内容不合法", "resolve": "请检查传入内容" } } ``` ## 调用例子 ``` JavaScript var form = new FormData(); form.append("url", "二维码url内容"); var settings = { "url": "https://idr.gdsinsing.com/v2/parse-qr-content", "method": "POST", "timeout": 0, "processData": false, "mimeType": "multipart/form-data", "contentType": false, "data": form }; $.ajax(settings).done(function (response) { console.log(response); }); ```