From eaf6ff3fec0d84a6d4266930705230e1b4463e6a Mon Sep 17 00:00:00 2001 From: zhanhuasheng Date: Mon, 22 Apr 2024 16:54:46 +0800 Subject: [PATCH] =?UTF-8?q?webhook=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Utils/webhook_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils/webhook_handler.py b/Utils/webhook_handler.py index 81bc515..99fb99d 100644 --- a/Utils/webhook_handler.py +++ b/Utils/webhook_handler.py @@ -7,7 +7,7 @@ import urllib.parse timestamp = str(round(time.time() * 1000)) -secret = 'SEC9d91939234e83369cba32c0ca4bcd9af60b5b1f69424d6fabd36f48d572a151c' +secret = 'SEC80ae01de9c486a9f8531d4ec1ed09b8fbd5d9cc1b0ba171b0493f9bebfeb4807' secret_enc = secret.encode('utf-8') string_to_sign = '{}\n{}'.format(timestamp, secret) string_to_sign_enc = string_to_sign.encode('utf-8') @@ -18,7 +18,7 @@ sign = urllib.parse.quote_plus(base64.b64encode(hmac_code)) class webhookHandler: - def __init__(self,webhookUrl = f"https://oapi.dingtalk.com/robot/send?access_token=22fda27990b00841c3201c20649c0a8abb6da82d8472b6f6154ef4cd9dadb33f×tamp={timestamp}&sign={sign}"): + def __init__(self,webhookUrl = f"https://oapi.dingtalk.com/robot/send?access_token=775093d6cbe22673b65e506f20aea7036cc58c4b9e89850f660eb798e4c149f6×tamp={timestamp}&sign={sign}"): self.webhookUrl = webhookUrl -- GitLab