瀏覽代碼

增加AI消息推送打印

zhangdongming 3 年之前
父節點
當前提交
9d6f7e40c5
共有 1 個文件被更改,包括 1 次插入0 次删除
  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):
     def ios_apns_push(nickname, app_bundle_id, token_val, n_time, event_type, msg_title, msg_text):
         try:
         try:
             logger = logging.getLogger('info')
             logger = logging.getLogger('info')
+            logger.info('--->进来苹果推送')
             cli = apns2.APNSClient(mode=APNS_MODE,
             cli = apns2.APNSClient(mode=APNS_MODE,
                                    client_cert=os.path.join(BASE_DIR, APNS_CONFIG[app_bundle_id]['pem_path']))
                                    client_cert=os.path.join(BASE_DIR, APNS_CONFIG[app_bundle_id]['pem_path']))
             alert = apns2.PayloadAlert(title=msg_title, body=msg_text)
             alert = apns2.PayloadAlert(title=msg_title, body=msg_text)