feat(商城): 代码优化

master
wayn 1 year ago
parent c8c9bfab83
commit ba9ab56076

@ -60,7 +60,7 @@ public class LoginController {
// 判断图形验证码 // 判断图形验证码
String redisCaptchaCode = redisCache.getCacheObject(registryObj.getCaptchaKey()); String redisCaptchaCode = redisCache.getCacheObject(registryObj.getCaptchaKey());
if (registryObj.getCaptchaCode() == null || !redisCaptchaCode.equals(registryObj.getCaptchaCode().trim().toLowerCase())) { if (registryObj.getCaptchaCode() == null || !StringUtils.equalsIgnoreCase(redisCaptchaCode, registryObj.getCaptchaCode().trim())) {
return R.error(USER_CAPTCHA_CODE_ERROR); return R.error(USER_CAPTCHA_CODE_ERROR);
} }

Loading…
Cancel
Save