Explorar o código

增加AI消息推送打印

zhangdongming %!s(int64=3) %!d(string=hai) anos
pai
achega
9d6f7e40c5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Service/GatewayService.py

+ 1 - 0
Service/GatewayService.py

@@ -41,6 +41,7 @@ class GatewayPushService:
     def ios_apns_push(nickname, app_bundle_id, token_val, n_time, event_type, msg_title, msg_text):
         try:
             logger = logging.getLogger('info')
+            logger.info('--->进来苹果推送')
             cli = apns2.APNSClient(mode=APNS_MODE,
                                    client_cert=os.path.join(BASE_DIR, APNS_CONFIG[app_bundle_id]['pem_path']))
             alert = apns2.PayloadAlert(title=msg_title, body=msg_text)