bugfix: 修复代码出错

This commit is contained in:
chenwj113 2023-05-20 23:56:22 +08:00
parent b924f18141
commit a86564b573
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ def check_signature(signature, timestamp, nonce, token):
:param token:
"""
unsign_str = "".join(sorted([timestamp, nonce, token]))
signed_str = hashlib.sha1(unsign_str).digest()
signed_str = hashlib.sha1(unsign_str.encode()).digest()
if signature == signed_str:
return True
else: