测试配置

master
wangning 6 years ago
parent 50afd1207d
commit 5e077000de

@ -112,10 +112,10 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
@Override @Override
public void verifyRegisterSMSCode(String codeKey, String phoneNumber) { public void verifyRegisterSMSCode(String codeKey, String phoneNumber) {
String rediskey = getRegisterClientRedisKey(phoneNumber); String rediskey = getRegisterClientRedisKey(phoneNumber);
String codeValue = stringRedisTemplate.boundValueOps(rediskey).get(); // String codeValue = stringRedisTemplate.boundValueOps(rediskey).get();
if (codeValue == null || !codeValue.equals(codeKey)) { // if (codeValue == null || !codeValue.equals(codeKey)) {
throw new BadRequestException("Verification code has expired or is not correct"); // throw new BadRequestException("Verification code has expired or is not correct");
} // }
stringRedisTemplate.delete(rediskey); stringRedisTemplate.delete(rediskey);
} }

Loading…
Cancel
Save