mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-07 17:38:38 +08:00
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:
parent
1a31bb5189
commit
8aca0fd957
@ -65,6 +65,8 @@ public class MasUtils {
|
|||||||
if (StrUtil.isNotEmpty(config.getAddSerial())){
|
if (StrUtil.isNotEmpty(config.getAddSerial())){
|
||||||
map.put("addSerial", config.getAddSerial().trim());
|
map.put("addSerial", config.getAddSerial().trim());
|
||||||
sb.append(config.getAddSerial().trim());
|
sb.append(config.getAddSerial().trim());
|
||||||
|
}else {
|
||||||
|
map.put("addSerial", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
map.put("mac", DigestUtil.md5Hex(sb.toString(), StandardCharsets.UTF_8));
|
map.put("mac", DigestUtil.md5Hex(sb.toString(), StandardCharsets.UTF_8));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user