|
@@ -698,6 +698,7 @@ class DevicePushService:
|
|
'Authorization': 'key={}'.format(app_secret)
|
|
'Authorization': 'key={}'.format(app_secret)
|
|
}
|
|
}
|
|
response = requests.post(url, data=data, headers=headers)
|
|
response = requests.post(url, data=data, headers=headers)
|
|
|
|
+ LOGGING.info('uid:{},时间:{}小米推送参数:{}'.format(uid, n_time, data))
|
|
if response.status_code == 200:
|
|
if response.status_code == 200:
|
|
LOGGING.info('uid:{},时间:{}小米推送结果:{}'.format(uid, n_time, response.json()))
|
|
LOGGING.info('uid:{},时间:{}小米推送结果:{}'.format(uid, n_time, response.json()))
|
|
return True
|
|
return True
|