|
@@ -4,6 +4,7 @@ import base64
|
|
|
import hashlib
|
|
|
import hmac
|
|
|
import json
|
|
|
+import logging
|
|
|
import random
|
|
|
import string
|
|
|
import time
|
|
@@ -109,6 +110,8 @@ class UVerifyObject:
|
|
|
print(response.text)
|
|
|
# 替换字符串,防止将字符串转为字典时报错
|
|
|
res_text = response.text.replace('true', '"true"').replace('false', '"false"').replace('null', '"null"')
|
|
|
+ logger = logging.getLogger('info')
|
|
|
+ logger.info('友盟认证响应: {}'.format(res_text))
|
|
|
res = eval(res_text)
|
|
|
print(res['success'])
|
|
|
if res['success'] == 'false':
|