mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-07 01:18:33 +08:00
修复发送云片短信时,不填callback-url参数报错的问题
This commit is contained in:
parent
98c6dc8d5f
commit
a3c8f02c84
@ -101,7 +101,7 @@ public class YunPianSmsImpl extends AbstractSmsBlend {
|
||||
body.put("mobile", phone);
|
||||
body.put("tpl_id", tplId);
|
||||
body.put("tpl_value", formattingMap(message));
|
||||
if (!config.getCallbackUrl().isEmpty()) body.put("callback_url", config.getCallbackUrl());
|
||||
if (config.getCallbackUrl() != null && !config.getCallbackUrl().isEmpty()) body.put("callback_url", config.getCallbackUrl());
|
||||
return body;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user