数据验签(SM9)
## 接口名称
数据签名(SM9)接口
## 接口描述
对传入的数据进行SM9验签。
## 接口地址
https://idr.gdsinsing.com/tools/sm9/verify
## 调用方式
|方法|数据类型|
|-|-|
|[ ] GET|[ ] form-data|
|[X] POST|[X] x-www-form-urlencoded|
|[ ] PUT|[ ] raw|
|[ ] DELETE||
## 参数说明
|参数名|位置|类型|必填|说明|
|-|-|-|-|-|
|rowText|body|String|是|原文|
| signedText |body|String|是|签名值|
| publicKey |body|String|是|签名公钥(SM9)|
## 返回结果
|属性名称|位置|数据类型|说明|
|-|-|-|-|
|success||Boolean|接口调用结果(fasle:调用失败,true:调用成功)|
|data||String|返回SM9数据验签结果|
|msg||String|接口调用结果的文字描述(一般为错误异常描述)|
|ex||Json|异常信息|
|code|ex|String|错误码|
|reson|ex|String|错误异常信息|
|resolve|ex|String|处理方法文字描述|
#### 成功返回
```JavaScript
{
"success": true,
"data": true,
"msg": "",
"ex": null
}
```
#### 失败返回
```JavaScript
{
"success": true,
"data": false,
"msg": "",
"ex": null
}
```
## 调用例子
``` JavaScript
var settings = {
"url": "https://idr.gdsinsing.com/tools/sm9/verify",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"rowText": "ABCD",
"signedText": "H0aDk5sDBJ8RornM2j+GNhbHR3FSJKHdl+h5CfNtzps+DHuFCX+Bi/3Q9tbC16j8XMRQz1EWH8UQxREIW2bJzmBvDMTqoXTOsAxUd3JYdbgp57z/P/E/o4AzUvlKUk0b",
"publicKey": "{SM9签名公钥}"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
```