|
@@ -223,6 +223,7 @@ class PushObject:
|
|
|
@param image: 推送图片链接
|
|
|
@return: None
|
|
|
"""
|
|
|
+ logger = logging.getLogger('info')
|
|
|
try:
|
|
|
url = 'https://api.xmpush.xiaomi.com/v3/message/regid'
|
|
|
app_secret = XMPUSH_CONFIG[app_bundle_id]
|
|
@@ -244,6 +245,7 @@ class PushObject:
|
|
|
'Authorization': 'key={}'.format(app_secret)
|
|
|
}
|
|
|
response = requests.post(url, data=data, headers=headers)
|
|
|
+ logger.info("移动侦测V2接口参数:{}".format(response.json()))
|
|
|
assert response.status_code == 200
|
|
|
except Exception as e:
|
|
|
return repr(e)
|