|
@@ -73,6 +73,9 @@ class UVerifyObject:
|
|
|
else:
|
|
|
string_to_sign = string_to_sign + value
|
|
|
|
|
|
+ logger = logging.getLogger('info')
|
|
|
+ logger.info('string_to_sign: {}'.format(string_to_sign))
|
|
|
+
|
|
|
key_bytes = self.ali_app_secret.encode('utf-8')
|
|
|
text_bytes = string_to_sign.encode('utf-8')
|
|
|
hash_bytes = hmac.new(key_bytes, text_bytes, hashlib.sha256).digest()
|