zouxuan 2 lat temu
rodzic
commit
7deb2e7658

+ 2 - 2
cooleshow-common/src/main/java/com/yonge/cooleshow/common/controller/BaseController.java

@@ -149,13 +149,13 @@ public class BaseController {
 
     public String dingTalkRobotsSecurityParam() throws Exception {
         Long timestamp = System.currentTimeMillis();
-        String secret = "SEC36b17ac2f4e201f962042fb05f4b6b827719bcf9b6bb7b672e61f99c752eb693";
+        String secret = "SEC5af33b7c3febfa4613ef67202bec4e07c37ccc54c51d058594f199c23af48e3e";
         String stringToSign = timestamp + "\n" + secret;
         Mac mac = Mac.getInstance("HmacSHA256");
         mac.init(new SecretKeySpec(secret.getBytes("UTF-8"), "HmacSHA256"));
         byte[] signData = mac.doFinal(stringToSign.getBytes("UTF-8"));
         String sign = URLEncoder.encode(new String(Base64.encodeBase64(signData)), "UTF-8");
-        StringBuffer sb = new StringBuffer("https://api.dingtalk.com/robot/send?access_token=22d7b3b54ea7f1633c640dfdf17083d0731c3757719a84bd333740a8b18eb035&timestamp=");
+        StringBuffer sb = new StringBuffer("https://oapi.dingtalk.com/robot/send?access_token=74faf5f6229b648396edfb3918eeb262916dc2f194cf866f1f6764a8906cff60");
         sb.append(timestamp).append("&sign=").append(sign);
         return sb.toString();
     }