fix: 模块加载启动顺序

This commit is contained in:
TsMask committed 2023-10-28 17:00:52 +08:00
1 parent ff1c760452
commit e66f83dce4
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ func (s *RegisterImpl) ValidateCaptcha(code, uuid string) error {
}
verifyKey := cachekey.CAPTCHA_CODE_KEY + uuid
captcha, err := redis.Get("", verifyKey)
if captcha == "" || err != nil {
if err != nil {
return errors.New("验证码已失效")
}
redis.Del("", verifyKey)