去除测试验证
This commit is contained in:
parent
1312392a8f
commit
4038110e2f
@ -9,14 +9,12 @@ import (
|
|||||||
"hospital-admin-api/utils"
|
"hospital-admin-api/utils"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Basic struct{}
|
type Basic struct{}
|
||||||
|
|
||||||
// GetCaptcha 获取验证码
|
// GetCaptcha 获取验证码
|
||||||
func (b *Basic) GetCaptcha(c *gin.Context) {
|
func (b *Basic) GetCaptcha(c *gin.Context) {
|
||||||
time.Sleep(20 * time.Second)
|
|
||||||
id, b64s, err := utils.GenerateCaptcha()
|
id, b64s, err := utils.GenerateCaptcha()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
responses.FailWithMessage("验证码获取失败", c)
|
responses.FailWithMessage("验证码获取失败", c)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user