Преглед изворни кода

DingNotify#getReceiver 设置为 public

reghao пре 1 година
родитељ
комит
2a7c00cda8

+ 1 - 2
mgr/src/main/java/cn/reghao/devops/mgr/admin/sys/service/notifier/ding/DingNotify.java

@@ -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("&timestamp=%s&sign=%s", timestamp, sign);
     }