locky 3 лет назад
Родитель
Сommit
4ce004b069
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      Object/UVerifyObject.py

+ 3 - 0
Object/UVerifyObject.py

@@ -73,6 +73,9 @@ class UVerifyObject:
             else:
             else:
                 string_to_sign = string_to_sign + value
                 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')
         key_bytes = self.ali_app_secret.encode('utf-8')
         text_bytes = string_to_sign.encode('utf-8')
         text_bytes = string_to_sign.encode('utf-8')
         hash_bytes = hmac.new(key_bytes, text_bytes, hashlib.sha256).digest()
         hash_bytes = hmac.new(key_bytes, text_bytes, hashlib.sha256).digest()