更新 华正信息 短信接口
This commit is contained in:
parent
96d116fe5d
commit
49b2d4c436
@ -78,13 +78,11 @@ public class SMSHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
String telephoneContent = telephoneBuilder.toString();
|
String telephoneContent = telephoneBuilder.toString();
|
||||||
String url = "http://58.56.128.186:10144/msg/msgReceive";
|
String url = "http://58.56.128.186:10144/msg/msgSend";
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
map.put("receiver", telephoneContent);
|
map.put("receiver", telephoneContent);
|
||||||
map.put("msgContent", "{\"content\":\"{'address':'" + templateParamArray[0] + "'}\"}");
|
map.put("msgContent", "{\"address\":\"" + templateParamArray[0] + "\"}");
|
||||||
map.put("idType", "30");
|
map.put("templateUid", "27dbffdf8b0a492e");
|
||||||
map.put("sendChannel", "30");
|
|
||||||
map.put("sendAccount", "12");
|
|
||||||
HttpClientUtils.sendHttpPost(url, new ObjectMapper().writeValueAsString(map));
|
HttpClientUtils.sendHttpPost(url, new ObjectMapper().writeValueAsString(map));
|
||||||
|
|
||||||
//记录短信通知日志
|
//记录短信通知日志
|
||||||
@ -124,13 +122,11 @@ public class SMSHelper {
|
|||||||
*/
|
*/
|
||||||
private void huazhengSMSCode(String telephone, String code) throws Exception {
|
private void huazhengSMSCode(String telephone, String code) throws Exception {
|
||||||
|
|
||||||
String url = "http://58.56.128.186:10144/msg/msgReceive";
|
String url = "http://58.56.128.186:10144/msg/msgSend";
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
map.put("receiver", telephone);
|
map.put("receiver", telephone);
|
||||||
map.put("msgContent", "{\"content\":\"{'code':'" + code + "'}\"}");
|
map.put("msgContent", "{\"code\":\"" + code + "\"}");
|
||||||
map.put("idType", "30");
|
map.put("templateUid", "6f7672a4978542e2");
|
||||||
map.put("sendChannel", "30");
|
|
||||||
map.put("sendAccount", "11");
|
|
||||||
HttpClientUtils.sendHttpPost(url, new ObjectMapper().writeValueAsString(map));
|
HttpClientUtils.sendHttpPost(url, new ObjectMapper().writeValueAsString(map));
|
||||||
//记录短信通知日志
|
//记录短信通知日志
|
||||||
String stringBuilder = "发送人:青岛华正信息技术股份有限公司\n" + "接收人:" + telephone + "\n" + "验证码:" + code + "\n";
|
String stringBuilder = "发送人:青岛华正信息技术股份有限公司\n" + "接收人:" + telephone + "\n" + "验证码:" + code + "\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user