From 0f4ca3ffbe52f0440d866409905c7a169fa7ad3e Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 17 Oct 2026 07:31:00 +0800 Subject: [PATCH] fix(types): type Ugreen decrypted text --- app/modules/ugreen/crypto.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/ugreen/crypto.py b/app/modules/ugreen/crypto.py index 120d2506e..9ae2f297f 100644 --- a/app/modules/ugreen/crypto.py +++ b/app/modules/ugreen/crypto.py @@ -125,7 +125,8 @@ class UgreenCrypto: encrypted = raw[12:] cipher = AESGCM(aes_key.encode("utf-8")) plain = cipher.decrypt(iv, encrypted, None) - return plain.decode("utf-8") + decoded: str = plain.decode("utf-8") + return decoded @staticmethod def build_security_key(token: str) -> str: