Merge pull request '修正MessageHub短信通道字段' (#46) from dev into sit
发布 Nacos 配置 / publish (push) Successful in 30s
Salon SIT 自动发布 / deploy (push) Successful in 3m1s

Reviewed-on: http://wcy111.top:3000/xiaowang/JayuCloud/pulls/46
This commit was merged in pull request #46.
This commit is contained in:
2026-09-06 18:02:08 +08:00
@@ -220,7 +220,9 @@ public class MessageHubClientServiceImpl implements MessageHubClientService {
messageBody.put("sourceSystem", config == null ? sourceSystem : config.getSourceSystem());
messageBody.put("messageId", messageId);
messageBody.put("uniqueId", messageId);
messageBody.put("platformParams", Map.of("sendMethod", StringUtils.hasText(resolvedSendMethod) ? resolvedSendMethod : "OTHER"));
String effectiveSendMethod = StringUtils.hasText(resolvedSendMethod) ? resolvedSendMethod : "OTHER";
messageBody.put("sendMethod", effectiveSendMethod);
messageBody.put("platformParams", Map.of("sendMethod", effectiveSendMethod));
if (config != null && config.getChannelId() != null) {
messageBody.put("channelId", config.getChannelId());
}