Sfoglia il codice sorgente

小米、oppo添加推送返回值

peng 2 anni fa
parent
commit
9971b3275b
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Service/DevicePushService.py

+ 2 - 0
Service/DevicePushService.py

@@ -418,6 +418,7 @@ class DevicePushService:
         }
         }
         response = requests.post(url, data=data, headers=headers)
         response = requests.post(url, data=data, headers=headers)
         if response.status_code == 200:
         if response.status_code == 200:
+            LOGGING.info('小米推送结果:'.format(response.json()))
             return response.json()
             return response.json()
 
 
     @staticmethod
     @staticmethod
@@ -470,6 +471,7 @@ class DevicePushService:
 
 
         response = requests.post(push_url, data=push_data, headers=headers)
         response = requests.post(push_url, data=push_data, headers=headers)
         if response.status_code == 200:
         if response.status_code == 200:
+            LOGGING.info("oppo推送返回值:{}".format(response.json()))
             return response.json()
             return response.json()
 
 
     @classmethod
     @classmethod