Explorar o código

Merge branch 'test' of http://192.168.136.99:3000/servers/ASJPush

locky %!s(int64=2) %!d(string=hai) anos
pai
achega
6d9186af2a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Service/GatewayService.py

+ 1 - 0
Service/GatewayService.py

@@ -43,6 +43,7 @@ class GatewayPushService:
         logger = logging.getLogger('info')
         try:
             pem_path = os.path.join(BASE_DIR, APNS_CONFIG[app_bundle_id]['pem_path'])
+            logger.info('apns推送app_bundle_id:{}, pem_path:{}'.format(app_bundle_id, pem_path))
             cli = apns2.APNSClient(mode=APNS_MODE, client_cert=pem_path)
             alert = apns2.PayloadAlert(title=msg_title, body=msg_text, launch_image=launch_image)
             push_data = {'alert': 'Motion', 'msg': '', 'sound': '', 'zpush': '1', 'uid': uid, 'channel': channel,