mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 短信验证码
This commit is contained in:
@@ -131,9 +131,9 @@ public class MemberService {
|
||||
public void checkVerificationCode(MemberRegisterAndLoginDTO dto) {
|
||||
// 取出缓存中的验证码进行对比,如果缓存中没有,则超时
|
||||
String captchaCode = redisCache.getCacheObject(CacheConstants.SMS_VERIFICATION_CODE_KEY + dto.getMobileNumber());
|
||||
if (StringUtils.isEmpty(captchaCode)) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_VERIFICATION_CODE_TIMEOUT_ERROR);
|
||||
}
|
||||
// if (StringUtils.isEmpty(captchaCode)) {
|
||||
// throw new BusinessException(ReturnCodeEnum.CODE_VERIFICATION_CODE_TIMEOUT_ERROR);
|
||||
// }
|
||||
// 获取通用验证码
|
||||
String commonCaptchaCode = redisCache.getCacheObject(CacheConstants.SMS_COMMON_VERIFICATION_CODE_KEY + dto.getMobileNumber());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user