From be403d47e8c78e4df08405f0c5de520a079eecec Mon Sep 17 00:00:00 2001 From: zhanhuasheng Date: Tue, 28 May 2024 11:47:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=AD=A3=E5=BC=8F=E5=9C=B0?= =?UTF-8?q?=E5=9D=80webhook?= 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 f2fa96b..4d8e97f 100644 --- a/Utils/webhook_handler.py +++ b/Utils/webhook_handler.py @@ -8,8 +8,8 @@ import urllib.parse timestamp = str(round(time.time() * 1000)) -# secret = 'SEC7c41f8b0298b348ed538883c49068185b75c510d64dcb988fc570cb7614f07ff' #正式的webhook -secret = 'SEC9d91939234e83369cba32c0ca4bcd9af60b5b1f69424d6fabd36f48d572a151c' #测试用的webhook +secret = 'SEC7c41f8b0298b348ed538883c49068185b75c510d64dcb988fc570cb7614f07ff' #正式的webhook +# secret = 'SEC9d91939234e83369cba32c0ca4bcd9af60b5b1f69424d6fabd36f48d572a151c' #测试用的webhook secret_enc = secret.encode('utf-8') string_to_sign = '{}\n{}'.format(timestamp, secret) string_to_sign_enc = string_to_sign.encode('utf-8') -- GitLab