diff --git a/src/main/java/com/xkrs/straw/model/helper/SMSHelper.java b/src/main/java/com/xkrs/straw/model/helper/SMSHelper.java index dac76e0..87ebf0e 100644 --- a/src/main/java/com/xkrs/straw/model/helper/SMSHelper.java +++ b/src/main/java/com/xkrs/straw/model/helper/SMSHelper.java @@ -48,53 +48,4 @@ public class SMSHelper { log.info(stringBuilder.toString()); } -// /** -// * 华正信息向用户发送短信 -// */ -// private void huazhengSMSMessage(String[] telephoneArray, String[] templateParamArray, FirePointEntity[] detailParamArray) throws Exception { -// StringBuilder telephoneBuilder = new StringBuilder(); -// for (int i = 0; i < telephoneArray.length; i++) { -// telephoneBuilder.append(telephoneArray[i]); -// if (i < telephoneArray.length - 1) { -// telephoneBuilder.append(","); -// } -// } -// String telephoneContent = telephoneBuilder.toString(); -// String url = "http://58.56.128.186:10144/msg/msgSend"; -// Map map = new HashMap<>(); -// map.put("receiver", telephoneContent); -// map.put("msgContent", "{\"address\":\"" + templateParamArray[0] + "\"}"); -// map.put("templateUid", "27dbffdf8b0a492e"); -// HttpClientUtils.sendHttpPost(url, new ObjectMapper().writeValueAsString(map)); -// -// //记录短信通知日志 -// StringBuilder stringBuilder = new StringBuilder("发送人:青岛华正信息技术股份有限公司\n"); -// for (String telephone : telephoneArray) { -// stringBuilder.append("接收人:").append(telephone).append("\n"); -// } -// for (String templateParam : templateParamArray) { -// stringBuilder.append("模板参数:").append(templateParam).append("\n"); -// } -// for (FirePointEntity detailParam : detailParamArray) { -// stringBuilder.append("超级详细的参数:").append(detailParam.toString()).append("\n"); -// } -// log.info(stringBuilder.toString()); -// } - -// /** -// * 华正信息向用户发送验证码 -// */ -// private void huazhengSMSCode(String telephone, String code) throws Exception { -// -// String url = "http://58.56.128.186:10144/msg/msgSend"; -// Map map = new HashMap<>(); -// map.put("receiver", telephone); -// map.put("msgContent", "{\"code\":\"" + code + "\"}"); -// map.put("templateUid", "6f7672a4978542e2"); -// HttpClientUtils.sendHttpPost(url, new ObjectMapper().writeValueAsString(map)); -// //记录短信通知日志 -// String stringBuilder = "发送人:青岛华正信息技术股份有限公司\n" + "接收人:" + telephone + "\n" + "验证码:" + code + "\n"; -// log.info(stringBuilder); -// } - }