浏览代码

删除旧接口判断

peng 2 年之前
父节点
当前提交
4958660970
共有 1 个文件被更改,包括 0 次插入11 次删除
  1. 0 11
      Controller/DetectController.py

+ 0 - 11
Controller/DetectController.py

@@ -197,17 +197,6 @@ class DetectControllerView(View):
         # 判断推送类型对应key是否存在
         print('push_type:', 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(173)
         dvqs = Device_Info.objects.filter(userID_id=userID, UID=uid)
         status = int(status)
         # 获取用户区域