From e200da12760261fbce5a9a62fdbd9555919b9520 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 14 Aug 2025 15:06:54 +0800 Subject: [PATCH] bugfix --- uapi/appapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uapi/appapi.py b/uapi/appapi.py index 4e179cb..eed5483 100644 --- a/uapi/appapi.py +++ b/uapi/appapi.py @@ -59,7 +59,8 @@ def get_dbname(): def deerer(myappid, apikey, secretkey): t = time() txt = f'{t}:{apikey}' - cyber = aes_encrypt_ecb(secretkey, txt) + k = secretkey.encode('utf-8') + cyber = aes_encrypt_ecb(k, txt) return f'Deerer {appid}-:-{cyber}' def bearer(apikey):