Browse Source

update field

lang 4 years ago
parent
commit
1f2b2f3e0b
1 changed files with 7 additions and 7 deletions
  1. 7 7
      Controller/UserController.py

+ 7 - 7
Controller/UserController.py

@@ -1843,10 +1843,10 @@ 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.info(push_type)
-        logger.info(type(push_type))
-        logger.info(appBundleId)
-        logger.info(type(appBundleId))
+        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', '')  # 语言区域
@@ -1854,16 +1854,16 @@ class InitInfoView(View):
         if all([token_val, push_type, appBundleId, userID]):
             push_type = int(push_type)
             if push_type == 0:
-                logger.info('------------0')
+                logger.error('------------0')
                 if appBundleId not in APNS_CONFIG.keys():
                     return response.json(904)
             elif push_type == 1:
-                logger.info('------------1')
+                logger.error('------------1')
 
                 if appBundleId not in FCM_CONFIG.keys():
                     return response.json(904)
             elif push_type == 2:
-                logger.info('------------2')
+                logger.error('------------2')
 
                 if appBundleId not in JPUSH_CONFIG.keys():
                     return response.json(904)