Commit bba9826a authored by honghy's avatar honghy

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

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