From d535f982e49bb098dcaaf59bd508422de7ce4ca4 Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Mon, 4 Jun 2018 18:36:10 +0800 Subject: [PATCH] tmp --- .../core/impls/SimpleClientApplyServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 4f903bd77..7912698ad 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 @@ -109,10 +109,10 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService { @Override public void verifyRegisterSMSCode(String codeKey, String phoneNumber) { String rediskey = getRegisterClientRedisKey(phoneNumber); -// 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); }