Commit 29f287d6 authored by honghy's avatar honghy

根据debug配置决定是否发送短信

parent ce1c6969
......@@ -392,11 +392,10 @@ public class SmsSendServiceImpl implements SmsSendService {
.setMobile(mobile)
.setSmsTemplateDTO(SmsTemplateConvert.INSTANCE.toDto(smsTemplate))
.setTemplateParams(newTemplateParams);
smsProducer.sendSmsSendMessageV2(smsSendMessage);
// 根据debug配置决定是否发送短信
// if (Objects.isNull(businessProperties) || !businessProperties.isDebug()) {
// smsProducer.sendSmsSendMessageV2(smsSendMessage);
// }
//根据debug配置决定是否发送短信
if (Objects.isNull(businessProperties) || !businessProperties.isDebug()) {
smsProducer.sendSmsSendMessageV2(smsSendMessage);
}
return sendLogId;
}
......
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