记得上下班打卡 | git大法好,push需谨慎

Commit 10a4fce9 authored by 张国柄's avatar 张国柄

~api:商城短信验证码根据环境选择调用服务商;

parent df96be57
...@@ -60,6 +60,10 @@ public class GoblinUserSafeController { ...@@ -60,6 +60,10 @@ public class GoblinUserSafeController {
ResponseDto<Object> validResultDto = this.validVerificationCode(code, currentMobile); ResponseDto<Object> validResultDto = this.validVerificationCode(code, currentMobile);
if (!validResultDto.isSuccess()) return validResultDto; if (!validResultDto.isSuccess()) return validResultDto;
GoblinUserSafeConfigDto userSafeConfigDto = goblinRedisUtils.getUserSafeConfigDto(currentUid);
if (null != userSafeConfigDto) {
return ResponseDto.failure(ErrorMapping.get("140020"));
}
String lockKey = GoblinRedisConst.USER_SAFE_CONFIG.concat("lk").concat(currentUid); String lockKey = GoblinRedisConst.USER_SAFE_CONFIG.concat("lk").concat(currentUid);
if (goblinRedisUtils.incr(lockKey, 1) > 1) return ResponseDto.failure(ErrorMapping.get("140000")); if (goblinRedisUtils.incr(lockKey, 1) > 1) return ResponseDto.failure(ErrorMapping.get("140000"));
goblinRedisUtils.expire(lockKey, 30); goblinRedisUtils.expire(lockKey, 30);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment