fix: handle non-string message types in function_lib_serializer

v3.2
CaptainB 2025-03-31 18:29:01 +08:00
parent 6aa0e9b5e4
commit 7afc1da0af
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ def encryption(message: str):
:param message:
:return:
"""
if type(message) != str:
return message
if message == "":
return ""
max_pre_len = 8