From ff5494efc3d7f347b7f555b29968632beff0195a Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Fri, 1 Jun 2018 14:03:59 +0800 Subject: [PATCH] rollback --- .../core/impls/SimpleClientApplyServiceImpl.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java index 3c00d211e..6a11ce2aa 100644 --- a/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/application/core/impls/SimpleClientApplyServiceImpl.java @@ -112,11 +112,10 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService { @Override public void verifyRegisterSMSCode(String codeKey, String phoneNumber) { String rediskey = getRegisterClientRedisKey(phoneNumber); - // TODO: 2018/6/1 kira -// String codeValue = stringRedisTemplate.boundValueOps(rediskey).get(); -// if (codeValue == null || !codeValue.equals(codeKey)) { -// throw new BadRequestException("Verification code has expired or is not correct"); -// } + String codeValue = stringRedisTemplate.boundValueOps(rediskey).get(); + if (codeValue == null || !codeValue.equals(codeKey)) { + throw new BadRequestException("Verification code has expired or is not correct"); + } stringRedisTemplate.delete(rediskey); }