Explorar o código

打印小米推送参数

locky hai 7 meses
pai
achega
ae5606f657
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Service/DevicePushService.py

+ 1 - 0
Service/DevicePushService.py

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