提交 ddefcef0 编写于 作者: L leon.li

add content to ams content

上级 ee99dfe9
......@@ -42,7 +42,7 @@ public class SmsSender implements Sender, LogEnabled {
}
private boolean sendSms(AlertMessageEntity message) {
String title = message.getTitle();
String content = message.getTitle() + " " + message.getContent();
List<String> phones = message.getReceivers();
StringBuilder sb = new StringBuilder();
......@@ -50,7 +50,7 @@ public class SmsSender implements Sender, LogEnabled {
InputStream in = null;
try {
String format = "http://10.1.1.84/sms/send/json?jsonm={type:808,mobile:\"%s\",pair:{body=\"%s\"}}";
String urlAddress = String.format(format, phone, URLEncoder.encode(title, "utf-8"));
String urlAddress = String.format(format, phone, URLEncoder.encode(content, "utf-8"));
URL url = new URL(urlAddress);
URLConnection conn = url.openConnection();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册