Commit 994eacc7 authored by 郑磊's avatar 郑磊

更新文档

parent 37e0f03c
......@@ -88,6 +88,10 @@ import { Captcha } from 'fj-captcha-vue'
当前端收到验证完成事件,收到了验证标识之后,可以传递给服务端,由服务端调用验证服务进行数据校验,校验通过后即可执行自身的业务逻辑。
以下有2个校验方式,区别是把验证数据提交到微服务,交给微服务去判断数据匹配,或是从微服务拉取验证数据,由业务端自己判断数据匹配。
**不管以哪种方式进行验证,一旦key发送到微服务端之后,此key将不可再使用,换一种方式也不再可用**
### 验证方式1:提交验证数据到验证服务
- 接口地址 `https://captcha.service.briefmsg.cn/api/captcha/use`
......@@ -147,8 +151,9 @@ import { Captcha } from 'fj-captcha-vue'
}
}
```
| 响应字段 | 类型 | 必需 | 参数说明 |
| -------- | ------ | ---- | ------------------------------------------------------------------------------- |
| ip | string | 是 | 用户校验时的客户端IP |
| extra | object | 是 | 通过验证页URL传递的额外的验证数据,如果验证页没有传额外数据也会返回一个空对象{} |
\ No newline at end of file
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment