Commit b680a424 authored by bdlzhx's avatar bdlzhx Committed by 老广

change sign_t return from bytes to str. (#480)

parent cf07a6eb
...@@ -68,7 +68,7 @@ class Signer(object): ...@@ -68,7 +68,7 @@ class Signer(object):
def sign_t(self, value, expires_in=3600): def sign_t(self, value, expires_in=3600):
s = TimedJSONWebSignatureSerializer(self.secret_key, expires_in=expires_in) s = TimedJSONWebSignatureSerializer(self.secret_key, expires_in=expires_in)
return s.dumps(value) return str(s.dumps(value), encoding="utf8")
def unsign_t(self, value): def unsign_t(self, value):
s = TimedJSONWebSignatureSerializer(self.secret_key) s = TimedJSONWebSignatureSerializer(self.secret_key)
......
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