|
|
|
@@ -17,14 +17,14 @@ public class WiwideUtil { |
|
|
|
private static final String addTemplateUrl = "https://webapp.wiwide.com/apisms/addtemplate"; |
|
|
|
private static final String smsSendUrl = "https://webapp.wiwide.com/apisms/send"; |
|
|
|
|
|
|
|
public static String addTemplate(String secret, String bid, String publickey, String signature, String content, String notifyUrl) { |
|
|
|
public static String addTemplate(String secret, String bid, String publickey, String signature, String content, String notifyUrl,String verifysms) { |
|
|
|
//请求api数据排序 |
|
|
|
TreeMap<String, String> message = new TreeMap<>(); |
|
|
|
message.put("bid", bid); |
|
|
|
message.put("signature", signature); |
|
|
|
message.put("content", content); |
|
|
|
message.put("notify_url",notifyUrl); |
|
|
|
message.put("verifysms","1"); |
|
|
|
message.put("verifysms",verifysms); |
|
|
|
|
|
|
|
StringBuilder sb = new StringBuilder(); |
|
|
|
Set<Map.Entry<String, String>> entries = message.entrySet(); |
|
|
|
@@ -56,13 +56,14 @@ public class WiwideUtil { |
|
|
|
} |
|
|
|
|
|
|
|
public static String sendMsg(String secret, String bid, String publickey, |
|
|
|
String phone, String signature, String msg, String notifyUrl) { |
|
|
|
String phone, String signature, String msg, String notifyUrl,String verifysms) { |
|
|
|
TreeMap<String, String> message = new TreeMap<>(); |
|
|
|
message.put("bid", bid); |
|
|
|
message.put("phone", phone); |
|
|
|
message.put("signature", signature); |
|
|
|
message.put("msg", msg); |
|
|
|
message.put("notify_url", notifyUrl); |
|
|
|
message.put("verifysms",verifysms); |
|
|
|
|
|
|
|
StringBuilder sb = new StringBuilder(); |
|
|
|
Set<Map.Entry<String, String>> entries = message.entrySet(); |
|
|
|
|