You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
### 获取认证信息(Checked)
|
|
|
|
|
|
|
|
此接口用于初期对接时验证认证方式时测试用,没有生产用途。
|
|
|
|
|
|
|
|
此接口需要认证,详情请查看《认证方式》。
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 基本信息
|
|
|
|
|
|
|
|
方法:POST
|
|
|
|
|
|
|
|
URL: http://localhost:8033/open/checked
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 请求
|
|
|
|
|
|
|
|
请求参数
|
|
|
|
|
|
|
|
| 参数名 | 类型 | 必填 | 说明 |
|
|
|
|
| :-- | :-- | :-- | :-- |
|
|
|
|
| strict | bool | 否 | 要求接口必须通过认证,在认证失败时抛出错误信息。默认值:是 |
|
|
|
|
|
|
|
|
示例 1:要求必须认证
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
strict: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### 响应
|
|
|
|
|
|
|
|
响应字段
|
|
|
|
|
|
|
|
| 字段 | 类型 | 说明 |
|
|
|
|
| :-- | :-- | :-- |
|
|
|
|
| clock | string | 当前服务器时钟。 |
|
|
|
|
| checked | bool | 认证成功。 |
|
|
|
|
| app | object | 注册的应用。 |
|
|
|
|
| app.name | string | 应用的名称。 |
|
|
|
|
|
|
|
|
认证成功时,响应如下:
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"clock": "2023-06-25 20:00:00.000",
|
|
|
|
"status": "ok",
|
|
|
|
"data": {
|
|
|
|
"clock": "2023-06-25 20:00:00.000",
|
|
|
|
"checked": true,
|
|
|
|
"app": {
|
|
|
|
"name": "Demo3"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
服务端和客户端的系统时钟必须准确,若某一端的时钟偏差较大,则会出现以下响应:
|
|
|
|
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"clock": "2023-06-25 20:00:00.000",
|
|
|
|
"status": "exception",
|
|
|
|
"message": "时间戳相差【2000】秒,超出了允许的范围,请检查系统时钟。",
|
|
|
|
"data": {}
|
|
|
|
}
|
|
|
|
```
|