Commit af740648 authored by honghy's avatar honghy Committed by wux

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

parent a455fe6e
...@@ -4,7 +4,6 @@ import cn.iocoder.yudao.framework.http.core.Request; ...@@ -4,7 +4,6 @@ import cn.iocoder.yudao.framework.http.core.Request;
import cn.iocoder.yudao.framework.http.core.Response; import cn.iocoder.yudao.framework.http.core.Response;
import cn.iocoder.yudao.framework.http.util.HttpUtils; import cn.iocoder.yudao.framework.http.util.HttpUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -46,7 +45,6 @@ public class BulksmsHttp { ...@@ -46,7 +45,6 @@ public class BulksmsHttp {
* @param password 密码 * @param password 密码
* @return 参数映射 * @return 参数映射
*/ */
@NotNull
public Map<String, Object> setParams(String mobiles, String message, String senderName, String username, String password) { public Map<String, Object> setParams(String mobiles, String message, String senderName, String username, String password) {
Map<String, Object> param = new HashMap<>(); Map<String, Object> param = new HashMap<>();
param.put("username", username); param.put("username", username);
......
...@@ -52,7 +52,6 @@ public class SendChampHttp { ...@@ -52,7 +52,6 @@ public class SendChampHttp {
* @param apiKey SendChamp API密钥 * @param apiKey SendChamp API密钥
* @return 返回构造好的请求头Map对象 * @return 返回构造好的请求头Map对象
*/ */
@NotNull
public Map<String, String> setHeader(String apiKey) { public Map<String, String> setHeader(String apiKey) {
Map<String, String> header = new HashMap<>(); Map<String, String> header = new HashMap<>();
header.put("Accept", "application/json,text/plain,*/*"); header.put("Accept", "application/json,text/plain,*/*");
......
...@@ -387,10 +387,9 @@ public class SmsSendServiceImpl implements SmsSendService { ...@@ -387,10 +387,9 @@ public class SmsSendServiceImpl implements SmsSendService {
throw exception(SMS_CHANNEL_NOT_EXISTS); throw exception(SMS_CHANNEL_NOT_EXISTS);
} }
//根据debug配置决定是否发送短信 //根据debug配置决定是否发送短信
// if ((Objects.isNull(businessProperties) || !businessProperties.isDebug()) && smsChannel.getStatus() == 0) { if ((Objects.isNull(businessProperties) || !businessProperties.isDebug()) && smsChannel.getStatus() == 0) {
// smsProducer.sendSmsSendMessageV2(smsSendMessage); smsProducer.sendSmsSendMessageV2(smsSendMessage);
// } }
smsProducer.sendSmsSendMessageV2(smsSendMessage);
return sendLogId; 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