Commit 763cf0d9 authored by ibuler's avatar ibuler

[Bugfix] 修复解密None的bug

parent 95a8bf09
......@@ -72,6 +72,8 @@ class Signer(metaclass=Singleton):
return s.dumps(value)
def unsign(self, value):
if value is None:
return value
s = JSONWebSignatureSerializer(self.secret_key)
try:
return s.loads(value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment