|
|
|
@ -50,8 +50,7 @@ public class SmsContentController { |
|
|
|
|
list.add(phone); |
|
|
|
|
map.put("signature", "嗨森逛"); |
|
|
|
|
|
|
|
|
|
String param = "88200409698&to" + phone + "&templateId=f42261f78d54488391f1d1ac4bd5bd3f&statusCallback=[" + phone +"]&signature=嗨森逛"; |
|
|
|
|
|
|
|
|
|
String param = "88200409698&to="+phone+"&templateId=f42261f78d54488391f1d1ac4bd5bd3f&templateParas=[\"" + 123456 +"\"]"; |
|
|
|
|
//JSON.toJSONString(map);
|
|
|
|
|
Map<String,Object> body = new LinkedHashMap<>(); |
|
|
|
|
body.put("from", param); |
|
|
|
@ -59,8 +58,9 @@ public class SmsContentController { |
|
|
|
|
String nonce = UUID.randomUUID().toString(); |
|
|
|
|
String created = DateUtil.date2String(new Date(), "yyyy-MM-dd'T'HH:mm:ss'Z'"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String passwordDigest = Base64Util.encode(encodeBySHA256(nonce + created + "9CWFv4NlaRX49n43VPA6eucZ8xeQ")); |
|
|
|
|
System.out.println(encodeBySHA256(nonce + created + "9CWFv4NlaRX49n43VPA6eucZ8xeQ")); |
|
|
|
|
System.out.println(Base64Util.encode(encodeBySHA256(nonce + created + "9CWFv4NlaRX49n43VPA6eucZ8xeQ"))); |
|
|
|
|
String passwordDigest = Base64Util.encode(encodeBySHA256(nonce + created + "9CWFv4NlaRX49n43VPA6eucZ8xeQ")) + "=="; |
|
|
|
|
|
|
|
|
|
// 9CWFv4NlaRX49n43VPA6eucZ8xeQ
|
|
|
|
|
Map<String,Object> header = new LinkedHashMap<>(); |
|
|
|
|