mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 17:08:40 +08:00
修复云片短信无模板时报错的问题
This commit is contained in:
parent
905eca3a98
commit
94ebc18d88
@ -138,7 +138,9 @@ public class YunPianSmsImpl extends AbstractSmsBlend<YunpianConfig> {
|
|||||||
body.put("apikey", getConfig().getAccessKeyId());
|
body.put("apikey", getConfig().getAccessKeyId());
|
||||||
body.put("mobile", phone);
|
body.put("mobile", phone);
|
||||||
body.put("tpl_id", tplId);
|
body.put("tpl_id", tplId);
|
||||||
body.put("tpl_value", formattingMap(message));
|
if (!message.isEmpty()){
|
||||||
|
body.put("tpl_value", formattingMap(message));
|
||||||
|
}
|
||||||
if (getConfig().getCallbackUrl() != null && !getConfig().getCallbackUrl().isEmpty()) {
|
if (getConfig().getCallbackUrl() != null && !getConfig().getCallbackUrl().isEmpty()) {
|
||||||
body.put("callback_url", getConfig().getCallbackUrl());
|
body.put("callback_url", getConfig().getCallbackUrl());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user