فهرست منبع

合并代码到master,更新正式环境

chenjunkai 6 سال پیش
والد
کامیت
00a38e115c
1فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 7 2
      Controller/DetectController.py

+ 7 - 2
Controller/DetectController.py

@@ -97,6 +97,7 @@ class NotificationView(View):
         # operation = kwargs.get('operation')
         # operation = kwargs.get('operation')
         return self.validation(request.GET)
         return self.validation(request.GET)
 
 
+
     def post(self, request, *args, **kwargs):
     def post(self, request, *args, **kwargs):
         request.encoding = 'utf-8'
         request.encoding = 'utf-8'
         # operation = kwargs.get('operation')
         # operation = kwargs.get('operation')
@@ -197,7 +198,9 @@ class NotificationView(View):
         appBundleId = uaql['appBundleId']
         appBundleId = uaql['appBundleId']
         token_val = uaql['token_val']
         token_val = uaql['token_val']
         uid = uaql['uid']
         uid = uaql['uid']
-        gcm_config = {'xxx': 'key'}
+        gcm_config = {
+            'xxx': 'key'
+        }
         serverKey = gcm_config[appBundleId]
         serverKey = gcm_config[appBundleId]
 
 
         msg = {'n_time': n_time, 'uid': uid}
         msg = {'n_time': n_time, 'uid': uid}
@@ -222,7 +225,9 @@ class NotificationView(View):
         n_time = request_dict.get('n_time')
         n_time = request_dict.get('n_time')
         appBundleId = uaql['appBundleId']
         appBundleId = uaql['appBundleId']
         uid = uaql['uid']
         uid = uaql['uid']
-        apns_config = {'appbundleId': {'pem_path': 'xxxx', 'topic': 'topic'}}
+        apns_config = {
+            'appbundleId': {'pem_path': 'xxxx', 'topic': 'topic'}
+        }
         try:
         try:
             # daytime = time.strftime("%Y%m%d%H%M", time.localtime(1547256103))
             # daytime = time.strftime("%Y%m%d%H%M", time.localtime(1547256103))
             # print(daytime)
             # print(daytime)