|
@@ -44,7 +44,7 @@ public class SmsService {
|
|
|
|
|
|
|
|
public void sendVerifyCode(SmsBo param) {
|
|
public void sendVerifyCode(SmsBo param) {
|
|
|
String mobile = param.getMobile();
|
|
String mobile = param.getMobile();
|
|
|
- String bizType = param.getBizType();
|
|
|
|
|
|
|
+ String bizType = param.getType();
|
|
|
String lockKey = String.format(RedisConstant.MESSAGE_SMS_VERIFY_CODE_LOCK_KEY, bizType, mobile);
|
|
String lockKey = String.format(RedisConstant.MESSAGE_SMS_VERIFY_CODE_LOCK_KEY, bizType, mobile);
|
|
|
if (!RedissonUtils.tryLock(lockKey, 5L, 10L)) {
|
|
if (!RedissonUtils.tryLock(lockKey, 5L, 10L)) {
|
|
|
throw new BusinessException("操作太频繁,请稍后再试");
|
|
throw new BusinessException("操作太频繁,请稍后再试");
|
|
@@ -190,7 +190,7 @@ public class SmsService {
|
|
|
throw new BusinessException("请勿频繁获取验证码,请60秒后再试");
|
|
throw new BusinessException("请勿频繁获取验证码,请60秒后再试");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- KwmSmsRecord record = buildSmsRecord(mobile, templateCode, param.getBizType(), template.getSmsType(), templateParam);
|
|
|
|
|
|
|
+ KwmSmsRecord record = buildSmsRecord(mobile, templateCode, param.getType(), template.getSmsType(), templateParam);
|
|
|
record.setTemplateContent(template.getContent());
|
|
record.setTemplateContent(template.getContent());
|
|
|
record.setSendStatus(3);
|
|
record.setSendStatus(3);
|
|
|
|
|
|