|
|
@@ -123,14 +123,14 @@ public class SmsUtil {
|
|
|
* @param templateId 模板id
|
|
|
* @return res json返回值
|
|
|
*/
|
|
|
- public static String sendNewTemplateSmsSmsPost(String phones, String content, String templateId) throws IOException {
|
|
|
+ public static String sendTemplateSmsPost(String phones, String content, String templateId) throws IOException {
|
|
|
HttpClient httpClient = HttpClients.createDefault();
|
|
|
HttpPost httpPost = new HttpPost("https://api.4321.sh/sms/template");
|
|
|
httpPost.addHeader("Content-Type", "application/json");
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
map.put("apikey", "N11727b332");// api接口账号
|
|
|
map.put("secret", "1172799e3242ebe1");// api接口秘钥
|
|
|
- map.put("sign_id", 101760);// 签名id
|
|
|
+ map.put("sign_id", "101760");// 签名id
|
|
|
map.put("template_id", templateId);// 模板id
|
|
|
map.put("mobile", phones);// 手机号
|
|
|
map.put("content", content);// 短信内容
|