mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 08:58:38 +08:00
commit
484f85f9d8
@ -138,8 +138,10 @@ public class YunPianSmsImpl extends AbstractSmsBlend<YunpianConfig> {
|
||||
body.put("apikey", getConfig().getAccessKeyId());
|
||||
body.put("mobile", phone);
|
||||
body.put("tpl_id", tplId);
|
||||
if (!message.isEmpty()){
|
||||
if (message!=null && !message.isEmpty()){
|
||||
body.put("tpl_value", formattingMap(message));
|
||||
}else {
|
||||
body.put("tpl_value", "");
|
||||
}
|
||||
if (getConfig().getCallbackUrl() != null && !getConfig().getCallbackUrl().isEmpty()) {
|
||||
body.put("callback_url", getConfig().getCallbackUrl());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user