diff --git a/dsSzxy/.idea/workspace.xml b/dsSzxy/.idea/workspace.xml
index 4709b380..8fbd5f5c 100644
--- a/dsSzxy/.idea/workspace.xml
+++ b/dsSzxy/.idea/workspace.xml
@@ -4,13 +4,11 @@
-
-
+
+
-
-
-
-
+
+
@@ -21,6 +19,7 @@
@@ -39,6 +38,7 @@
+
@@ -101,6 +101,10 @@
+
+
+
+
true
diff --git a/dsSzxy/Business/CaptchaRelate/CaptchaController/CaptchaController.go b/dsSzxy/Business/CaptchaRelate/CaptchaController/CaptchaController.go
index c3131dd9..bce2989f 100644
--- a/dsSzxy/Business/CaptchaRelate/CaptchaController/CaptchaController.go
+++ b/dsSzxy/Business/CaptchaRelate/CaptchaController/CaptchaController.go
@@ -8,17 +8,17 @@ import (
"net/http"
)
-//模块的路由配置
+// Routers 模块的路由配置
func Routers(r *gin.RouterGroup) {
rr := r.Group("/captchaRelate")
rr.GET("/GetOne", GetOne)
- rr.GET("/Verify", Verify)
+ rr.POST("/Verify", Verify)
}
// 设置自带的store
var store = base64Captcha.DefaultMemStore
-//存储验证码的结构
+// CaptchaResult 存储验证码的结构
type CaptchaResult struct {
Id string `json:"id"`
Base64Blob string `json:"base_64_blob"`
diff --git a/dsSzxy/main.go b/dsSzxy/main.go
index 7f21516b..07de015a 100644
--- a/dsSzxy/main.go
+++ b/dsSzxy/main.go
@@ -25,6 +25,8 @@ func main() {
gin.SetMode(gin.DebugMode)
// 开启gin服务器
r := gin.Default()
+ //设置静态资源
+ r.Static("/dsSzxy/static", "./static")
// 使用跨域中间件
r.Use(Utils.Cors())
//主路由
diff --git a/dsSzxy/static/getcapt.html b/dsSzxy/static/getcapt.html
new file mode 100644
index 00000000..cb7a568a
--- /dev/null
+++ b/dsSzxy/static/getcapt.html
@@ -0,0 +1,49 @@
+
+
+
+
+ Title
+
+
+
+![]()
+
+
+
+
+