customValidName
This commit is contained in:
@ -62,12 +62,13 @@ public class BizShortMessageController{
|
|||||||
log.info("解密后:"+value);
|
log.info("解密后:"+value);
|
||||||
String key = "mobilecode:" + value;
|
String key = "mobilecode:" + value;
|
||||||
Object tokenValue = redisTemplate.opsForValue().get(key);
|
Object tokenValue = redisTemplate.opsForValue().get(key);
|
||||||
|
log.info("---------tokenValue----------"+tokenValue);
|
||||||
if (tokenValue != null) {
|
if (tokenValue != null) {
|
||||||
CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.assertNotNullByKey("验证码尚未失效",true);
|
CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.customValidName("验证码尚未失效",true);
|
||||||
}else{
|
}else{
|
||||||
Boolean b = iBizShortMessageService.authCodeSend(value);
|
Boolean b = iBizShortMessageService.authCodeSend(value);
|
||||||
|
log.info("---------authCodeSend----------"+b);
|
||||||
if(b){
|
if(b){
|
||||||
//Map<String, Object> map = JSONArray.parseObject(JSONArray.toJSONString(vo), Map.class);
|
|
||||||
redisTemplate.opsForValue().set(key, key,30,TimeUnit.SECONDS);
|
redisTemplate.opsForValue().set(key, key,30,TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
return BaseResponse.success(b);
|
return BaseResponse.success(b);
|
||||||
|
Reference in New Issue
Block a user