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