Browse Source

[Bugfix] 修复解密None的bug

pull/1217/head
ibuler 7 years ago
parent
commit
763cf0d981
  1. 2
      apps/common/utils.py

2
apps/common/utils.py

@ -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)

Loading…
Cancel
Save