소스 검색

删除代码

peng 2 년 전
부모
커밋
60551015b5
1개의 변경된 파일0개의 추가작업 그리고 12개의 파일을 삭제
  1. 0 12
      Controller/UserController.py

+ 0 - 12
Controller/UserController.py

@@ -2326,18 +2326,6 @@ class InitInfoView(View):
         lang = request_dict.get('lang', '')  # 语言区域
         now_time = int(time.time())
         if all([token_val, push_type, appBundleId, userID]):
-            push_type = int(push_type)
-            if push_type == 0:
-                if appBundleId not in APNS_CONFIG.keys():
-                    return response.json(904)
-            elif push_type == 1:
-                if appBundleId not in FCM_CONFIG.keys():
-                    return response.json(904)
-            elif push_type == 2:
-                if appBundleId not in JPUSH_CONFIG.keys():
-                    return response.json(904)
-            else:
-                return response.json(444, 'push_type')
             self.save_push_config(userID, appBundleId, push_type, token_val, m_code, lang, tz)
             if m_code:
                 # 获取设备推送状态