lang 4 éve
szülő
commit
273268700a
1 módosított fájl, 6 hozzáadás és 7 törlés
  1. 6 7
      Controller/UserController.py

+ 6 - 7
Controller/UserController.py

@@ -1843,11 +1843,6 @@ class InitInfoView(View):
         m_code = request_dict.get('m_code', None)
         push_type = request_dict.get('push_type', None)
         appBundleId = request_dict.get('appBundleId', None)
-        logger.error('push:', push_type)
-        logger.error('push_type', type(push_type))
-        logger.error('appBundleId:',appBundleId)
-        logger.error('appBundleId_type:', type(appBundleId))
-
         tz = request_dict.get('tz', '0')
         lang = request_dict.get('lang', '')  # 语言区域
         now_time = int(time.time())
@@ -1855,8 +1850,12 @@ class InitInfoView(View):
             push_type = int(push_type)
             if push_type == 0:
                 logger.error('------------0')
-                if appBundleId not in APNS_CONFIG.keys():
-                    return response.json(904)
+                logger.error('into if')
+                logger.error(appBundleId)
+                logger.error(type(appBundleId))
+            if appBundleId not in APNS_CONFIG.keys():
+                logger.error('into 904')
+                return response.json(904)
             elif push_type == 1:
                 logger.error('------------1')