update sms4j-provider/src/main/java/org/dromara/sms4j/mas/utils/MasUtils.java.

fix 修复中国移动 云MAS addSerial参数为空时没有放到map中导致发送失败

Signed-off-by: Bleachtred <bleachtred@163.com>
This commit is contained in:
Bleachtred 2024-10-23 03:13:00 +00:00 committed by Gitee
parent 1a31bb5189
commit 8aca0fd957
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -65,6 +65,8 @@ public class MasUtils {
if (StrUtil.isNotEmpty(config.getAddSerial())){
map.put("addSerial", config.getAddSerial().trim());
sb.append(config.getAddSerial().trim());
}else {
map.put("addSerial", "");
}
map.put("mac", DigestUtil.md5Hex(sb.toString(), StandardCharsets.UTF_8));