REQ-3444: 调用方控制是否截断参数

This commit is contained in:
yanglin 2024-12-17 16:27:23 +08:00
parent f27881e394
commit b5107667d8

View File

@ -165,7 +165,7 @@ public class SmsSendManagerComposite implements SmsSendManager, ApplicationConte
*/ */
private String handleSmsVariableSize(MessageSendRequestDto request, String str) { private String handleSmsVariableSize(MessageSendRequestDto request, String str) {
VariableAbbreviation abbreviation = request.getAbbreviation(); VariableAbbreviation abbreviation = request.getAbbreviation();
if (abbreviation == null) { if (abbreviation == null || request.getChannelCode().equals("aliyun")) {
abbreviation = VariableAbbreviation.defaultAbbreviate(); abbreviation = VariableAbbreviation.defaultAbbreviate();
} }
if (!abbreviation.isAbbreviate()) { if (!abbreviation.isAbbreviate()) {