Update server.py

This commit is contained in:
Physton
2023-06-24 15:47:21 +08:00
parent 5945b3b8f4
commit 17e49fcfb5

View File

@@ -1878,7 +1878,7 @@ class Caiyun(Tse):
def decrypt(self, cipher_text: str) -> str:
_ciphertext = ''.join(list(map(lambda k: self.decrypt_dictionary[k], cipher_text)))
return base64.b64decode(_ciphertext).decode()
return base64.b64decode(_ciphertext).decode('utf-8', errors='ignore')
@Tse.time_stat
@Tse.check_query