Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fj-captcha-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
郑磊
fj-captcha-service
Commits
994eacc7
Commit
994eacc7
authored
May 17, 2024
by
郑磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新文档
parent
37e0f03c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
README.md
README.md
+7
-2
No files found.
README.md
View file @
994eacc7
...
...
@@ -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
| extra | object | 是 | 通过验证页URL传递的额外的验证数据,如果验证页没有传额外数据也会返回一个空对象{} |
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment