|
|
@@ -44,9 +44,8 @@ public class DingNotify implements Notify<DingMsg> {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private String getReceiver(String url, String secret) throws InvalidKeyException, NoSuchAlgorithmException {
|
|
|
+ public String getReceiver(String url, String secret) throws InvalidKeyException, NoSuchAlgorithmException {
|
|
|
long timestamp = System.currentTimeMillis();
|
|
|
- //String secret = "SEC4d7e0c126147b3679c4d15e47dc26311ca053bd47b21f4025832a6e246a93ec4";
|
|
|
String sign = calcSign(timestamp, secret);
|
|
|
return url + String.format("×tamp=%s&sign=%s", timestamp, sign);
|
|
|
}
|