去除测试验证
This commit is contained in:
parent
1312392a8f
commit
4038110e2f
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user