Skip to content

Commit abd1dad

Browse files
committed
Update README.md
1 parent 7eb11bf commit abd1dad

File tree

5 files changed

+45
-36
lines changed

5 files changed

+45
-36
lines changed

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,23 @@
2626

2727
## URL Index
2828

29-
| Name | URL |
30-
|-------------------------------------------------------------|----------------------------------------------------------------------------------------------|
31-
| GoCaptcha Document | [http://gocaptcha.wencodes.com](http://gocaptcha.wencodes.com) |
32-
| Online Demo | [http://gocaptcha.wencodes.com/demo/](http://gocaptcha.wencodes.com/demo/) |
33-
| Golang + Web + APP Example | [https://github.com/wenlng/go-captcha-example](https://github.com/wenlng/go-captcha-example) |
34-
| Golang Captcha | [https://github.com/wenlng/go-captcha](https://github.com/wenlng/go-captcha) |
35-
| Golang Assets File | [https://github.com/wenlng/go-captcha-assets](https://github.com/wenlng/go-captcha-assets) |
36-
| Javascript Captcha | [https://github.com/wenlng/go-captcha-jslib](https://github.com/wenlng/go-captcha-jslib) |
37-
| Vue Captcha | [https://github.com/wenlng/go-captcha-vue](https://github.com/wenlng/go-captcha-vue) |
38-
| React Captcha | [https://github.com/wenlng/go-captcha-react](https://github.com/wenlng/go-captcha-react) |
39-
| Angular Captcha | [https://github.com/wenlng/go-captcha-angular](https://github.com/wenlng/go-captcha-angular) |
40-
| Svelte Captcha | [https://github.com/wenlng/go-captcha-svelte](https://github.com/wenlng/go-captcha-svelte) |
41-
| Solid Captcha | [https://github.com/wenlng/go-captcha-solid](https://github.com/wenlng/go-captcha-solid) |
42-
| UniApp Captcha | [https://github.com/wenlng/go-captcha-uni](https://github.com/wenlng/go-captcha-uni) |
43-
| ... | |
29+
| Project | Desc |
30+
|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
31+
| [document](http://gocaptcha.wencodes.com) | GoCaptcha Documentation |
32+
| [online demo](http://gocaptcha.wencodes.com/demo/) | GoCaptcha Online Demo |
33+
| [go-captcha-example](https://github.com/wenlng/go-captcha-example) | Golang + Web + APP Example |
34+
| [go-captcha-assets](https://github.com/wenlng/go-captcha-assets) | Embedded Resource Assets for Golang |
35+
| [go-captcha](https://github.com/wenlng/go-captcha) | Golang CAPTCHA Library |
36+
| [go-captcha-jslib](https://github.com/wenlng/go-captcha-jslib) | JavaScript CAPTCHA Library |
37+
| [go-captcha-vue](https://github.com/wenlng/go-captcha-vue) | Vue CAPTCHA Library |
38+
| [go-captcha-react](https://github.com/wenlng/go-captcha-react) | React CAPTCHA Library |
39+
| [go-captcha-angular](https://github.com/wenlng/go-captcha-angular) | Angular CAPTCHA Library |
40+
| [go-captcha-svelte](https://github.com/wenlng/go-captcha-svelte) | Svelte CAPTCHA Library |
41+
| [go-captcha-solid](https://github.com/wenlng/go-captcha-solid) | Solid CAPTCHA Library |
42+
| [go-captcha-uni](https://github.com/wenlng/go-captcha-uni) | UniApp CAPTCHA, compatible with Apps, Mini-Programs, and Fast Apps |
43+
| [go-captcha-service](https://github.com/wenlng/go-captcha-service) | GoCaptcha Service, supports binary and Docker image deployment, <br/>provides HTTP/gRPC interfaces,<br/> supports standalone and distributed modes (service discovery, load balancing, dynamic configuration) |
44+
| [go-captcha-service-sdk](https://github.com/wenlng/go-captcha-service-sdk) | GoCaptcha Service SDK Toolkit, includes HTTP/gRPC request interfaces,<br/> supports static mode, service discovery, and load balancing. |
45+
| ... | |
4446

4547

4648
<br/>

README_zh.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,23 @@
2727

2828
## 链接索引
2929

30-
| 名称 | 链接 |
31-
|--------------------------------------------------------------------|-------------------------------------------------------------------------------------------|
32-
| GoCaptcha 文档 | [http://gocaptcha.wencodes.com](http://gocaptcha.wencodes.com) |
33-
| 在线演示 | [http://gocaptcha.wencodes.com/demo/](http://gocaptcha.wencodes.com/demo/) |
34-
| Golang + 前端 + APP实例 | [https://github.com/wenlng/go-captcha-example](https://github.com/wenlng/go-captcha-example) |
35-
| Golang 验证码 | [https://github.com/wenlng/go-captcha](https://github.com/wenlng/go-captcha) |
36-
| Golang 内嵌素材资源 | [https://github.com/wenlng/go-captcha-assets](https://github.com/wenlng/go-captcha-assets) |
37-
| Javascript 验证码 | [https://github.com/wenlng/go-captcha-jslib](https://github.com/wenlng/go-captcha-jslib) |
38-
| Vue 验证码 | [https://github.com/wenlng/go-captcha-vue](https://github.com/wenlng/go-captcha-vue) |
39-
| React 验证码 | [https://github.com/wenlng/go-captcha-react](https://github.com/wenlng/go-captcha-react) |
40-
| Angular 验证码 | [https://github.com/wenlng/go-captcha-angular](https://github.com/wenlng/go-captcha-angular) |
41-
| Svelte 验证码 | [https://github.com/wenlng/go-captcha-svelte](https://github.com/wenlng/go-captcha-svelte) |
42-
| Solid 验证码 | [https://github.com/wenlng/go-captcha-solid](https://github.com/wenlng/go-captcha-solid) |
43-
| UniApp 验证码 | [https://github.com/wenlng/go-captcha-uni](https://github.com/wenlng/go-captcha-uni) |
44-
| ... | |
30+
| 名称 | 描述 |
31+
|----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|
32+
| [document](http://gocaptcha.wencodes.com) | GoCaptcha 文档 |
33+
| [online demo](http://gocaptcha.wencodes.com/demo/) | GoCaptcha 在线演示 |
34+
| [go-captcha-example](https://github.com/wenlng/go-captcha-example) | Golang + 前端 + APP实例 |
35+
| [go-captcha-assets](https://github.com/wenlng/go-captcha-assets) | Golang 内嵌素材资源 |
36+
| [go-captcha](https://github.com/wenlng/go-captcha) | Golang 验证码 |
37+
| [go-captcha-jslib](https://github.com/wenlng/go-captcha-jslib) | Javascript 验证码 |
38+
| [go-captcha-vue](https://github.com/wenlng/go-captcha-vue) | Vue 验证码 |
39+
| [go-captcha-react](https://github.com/wenlng/go-captcha-react) | React 验证码 |
40+
| [go-captcha-angular](https://github.com/wenlng/go-captcha-angular) | Angular 验证码 |
41+
| [go-captcha-svelte](https://github.com/wenlng/go-captcha-svelte) | Svelte 验证码 |
42+
| [go-captcha-solid](https://github.com/wenlng/go-captcha-solid) | Solid 验证码 |
43+
| [go-captcha-uni](https://github.com/wenlng/go-captcha-uni) | UniApp 验证码,兼容 App、小程序、快应用等 |
44+
| [go-captcha-service](https://github.com/wenlng/go-captcha-service) | GoCaptcha 服务,支持二进制、Docker镜像等方式部署,<br/> 提供 HTTP/GRPC 方式访问接口,<br/>可用单机模式和分布式(服务发现、负载均衡、动态配置等) |
45+
| [go-captcha-service-sdk](https://github.com/wenlng/go-captcha-service-sdk) | GoCaptcha 服务SDK工具包,包含 HTTP/GRPC 请求服务接口,<br/>支持静态模式、服务发现、负载均衡 |
46+
| ... | |
4547

4648
<br/>
4749

web/vue/src/components/click-text-capt.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ import {ref} from "vue";
1818
const domRef = ref(null)
1919
2020
const handler = useHandler(domRef, {
21-
getApi: "/api/go-captcha-data/click-basic",
21+
// getApi: "/api/go-captcha-data/click-basic",
22+
// checkApi: "/api/go-captcha-check-data/click-basic"
23+
getApi: "get-data?id=click_dark_en",
2224
checkApi: "/api/go-captcha-check-data/click-basic"
2325
})
2426

web/vue/src/hooks/useClickHandler.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@ export const useHandler = (domRef, config) => {
2929

3030
const requestCaptchaData = () => {
3131
domRef.value.clear && domRef.value.clear()
32-
3332
Axios({
3433
method: 'get',
3534
url: config.getApi,
35+
headers: {
36+
"X-API-Key": "my-secret-key-123"
37+
}
3638
}).then((response)=>{
3739
const {data = {}} = response;
38-
if (!Lodash.isEmpty(data) && (data['code'] || 0) === 0) {
39-
cData.image = data['image_base64'] || ''
40-
cData.thumb = data['thumb_base64'] || ''
40+
if (!Lodash.isEmpty(data) && (data['code'] || 0) === 200) {
41+
cData.image = data['master_image_base64'] || ''
42+
cData.thumb = data['thumb_image_base64'] || ''
4143
cData.captKey = data['captcha_key'] || ''
4244
} else {
4345
message.warning(`get data failed`)

web/vue/src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import axios from 'axios'
1818
// Tip:
1919
// This URL is for effects demonstration only,
2020
// please do not use in production environment.
21-
axios.defaults.baseURL = 'http://47.104.180.148:8081/';
21+
// axios.defaults.baseURL = 'http://47.104.180.148:8081/';
22+
axios.defaults.baseURL = 'http://127.0.0.1:8080/';
2223
//////////////////////////////////////////////////////////
2324

2425
// axios.defaults.baseURL = 'http://0.0.0.0:9001/';

0 commit comments

Comments
 (0)