소스 검색

测试推送

lang 3 년 전
부모
커밋
0e6470b6e1
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      Controller/TestController.py

+ 1 - 2
Controller/TestController.py

@@ -657,10 +657,9 @@ def testDetect(request):
 def testDetectApns(request):
     logger = logging.getLogger('info')
     logger.info("进来do_apns函数了")
-    logger.info(os.path.join(BASE_DIR, APNS_CONFIG['com.ansjer.customizede']['pem_path']))
     try:
         cli = apns2.APNSClient(mode=APNS_MODE,
-                               client_cert=os.path.join(BASE_DIR, APNS_CONFIG['com.ansjer.customizede']['pem_path']))
+                               client_cert=os.path.join(BASE_DIR, 'AnsjerPush/file/apns_pem/customizede.pem'))
 
         push_data = {"alert": "Motion ", "event_time": int(time.time()), "event_type": 1, "msg": "",
                      "received_at": int(time.time()), "sound": "sound.aif", "uid": 111, "zpush": "1", "channel": 1}