去除测试验证

This commit is contained in:
wucongxing 2023-06-08 16:04:55 +08:00
parent 1312392a8f
commit 4038110e2f

View File

@ -9,14 +9,12 @@ import (
"hospital-admin-api/utils"
"regexp"
"strings"
"time"
)
type Basic struct{}
// GetCaptcha 获取验证码
func (b *Basic) GetCaptcha(c *gin.Context) {
time.Sleep(20 * time.Second)
id, b64s, err := utils.GenerateCaptcha()
if err != nil {
responses.FailWithMessage("验证码获取失败", c)