فهرست منبع

删除旧接口判断

peng 2 سال پیش
والد
کامیت
f51672367a
1فایلهای تغییر یافته به همراه0 افزوده شده و 11 حذف شده
  1. 0 11
      Controller/DetectController.py

+ 0 - 11
Controller/DetectController.py

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