|
|
@@ -168,7 +168,7 @@ public class ActiveManagerImpl extends AbstractCommManager implements ActiveMana |
|
|
|
@Override |
|
|
|
public void checkSendCode(CheckCodeRequest request) throws ManagerException { |
|
|
|
request.validate(); |
|
|
|
String smsCode = redisManager.get(RedisKeyGenerator.getSmsCodeKey(request.getMobile(), request.getLoginSource(), 4)); |
|
|
|
String smsCode = redisManager.get(RedisKeyGenerator.getSmsCodeKey(request.getMobile(), request.getOrderSource().name(), 4)); |
|
|
|
if (!hasText(smsCode)) |
|
|
|
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("短信验证码已过期,请重新发送"); |
|
|
|
if (!smsCode.equals(request.getCode())) |