bugfix: 修复代码出错
This commit is contained in:
parent
b924f18141
commit
a86564b573
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue