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

Commit 56959ba2 authored by zhoujianping's avatar zhoujianping

手机号注销自定义临时验证码

parent 7d571a9d
...@@ -148,6 +148,22 @@ public class AdamController { ...@@ -148,6 +148,22 @@ public class AdamController {
return ResponseDto.success(smsCode); return ResponseDto.success(smsCode);
} }
@GetMapping("A003")
@ApiOperation("手机号注销自定义临时验证码")
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "phone", value = "账户手机号", required = true),
@ApiImplicitParam(type = "query", dataType = "Integer", name = "day", value = "临时天数", required = true)
})
public ResponseDto A003(
@RequestParam("phone") String phone,
@RequestParam("day") Integer day
) {
Integer time= day*60*60*24;
String smsCode = RandomStringUtils.randomNumeric(6);
redisDataSourceUtil.getRedisAdamUtil().set(AdamRedisConst.VALID_SMS_CODE_MOBILE + phone, smsCode,time);
return ResponseDto.success(smsCode);
}
/** /**
* 身份证实名处理 * 身份证实名处理
* *
......
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