|
@@ -115,7 +115,7 @@ public class SmsUtilAliImplService implements SmsUtil {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void sendSmsCommon(String mobile, Long configId, String paramValue) {
|
|
|
+ public void sendSmsCommon(String mobile, Long configId, Map<String, Object> templateParams) {
|
|
|
MsgConfigDto.Vo msgConfig = R.feignCheckData(msgSendApiService.getMsgConfig(new MsgConfigDto.Vo().setId(configId)));
|
|
|
List<MsgConfigTestDto.BizParam> bizParams = R.feignCheckData(msgSendApiService.getBizParamByMsgConfig(new MsgConfigTestDto.MsgConfig().setConfigId(configId)));
|
|
|
if (CollUtil.isNotEmpty(bizParams) && msgConfig != null) {
|
|
@@ -124,10 +124,8 @@ public class SmsUtilAliImplService implements SmsUtil {
|
|
|
for (MsgConfigTestDto.BizData b : bizDataList) {
|
|
|
String channelType = b.getChannelType();
|
|
|
if (Integer.valueOf(channelType).intValue() == ChannelType.SMS.getCode().intValue()) {
|
|
|
- Map<String, Object> params = MapUtil.newHashMap();
|
|
|
- params.put("data", paramValue);
|
|
|
b.setReceivers(CollUtil.newHashSet(mobile));
|
|
|
- b.setTemplateParams(params);
|
|
|
+ b.setTemplateParams(templateParams);
|
|
|
sendList.add(b);
|
|
|
}
|
|
|
}
|