|
|
@@ -7,7 +7,6 @@ import com.sckw.redis.constant.RedisConstant;
|
|
|
import com.sckw.redis.utils.RedissonUtils;
|
|
|
import com.sckw.stream.enums.SmsCodeEnum;
|
|
|
import com.sckw.stream.model.SckwSms;
|
|
|
-import com.sckw.stream.utils.SmsUtil;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -46,8 +45,8 @@ public class SckwSmsHandlerService {
|
|
|
throw new BusinessException("请勿频繁获取短信验证码!");
|
|
|
}
|
|
|
RedissonUtils.putString(requestKey, String.valueOf(sckwSms.getParams().get("code")), RedisConstant.SMS_VERIFY_CODE_REQUEST_TIME);
|
|
|
- //发送短信
|
|
|
- SmsUtil.sendSms(sckwSms.getPhone(), sckwSms.getSignName(), sckwSms.getTemplateCode().getName(), JSON.toJSONString(sckwSms.getParams()));
|
|
|
+ //发送短信 TODO:测试暂时屏蔽,上线再放开
|
|
|
+// SmsUtil.sendSms(sckwSms.getPhone(), sckwSms.getSignName(), sckwSms.getTemplateCode().getName(), JSON.toJSONString(sckwSms.getParams()));
|
|
|
//放入缓存
|
|
|
String valueKey = getKey(RedisConstant.MESSAGE_SMS_VERIFY_CODE_VALUE_KEY, type, phone);
|
|
|
RedissonUtils.putString(valueKey, String.valueOf(sckwSms.getParams().get("code")), RedisConstant.SMS_VERIFY_CODE_VALID_TIME);
|