locky 2 лет назад
Родитель
Сommit
3e8d860b92
1 измененных файлов с 0 добавлено и 5 удалено
  1. 0 5
      Controller/DetectControllerV2.py

+ 0 - 5
Controller/DetectControllerV2.py

@@ -96,13 +96,8 @@ class DetectControllerViewV2(View):
         # 关闭推送
         if not all([appBundleId, app_type, token_val, uid, m_code]):
             return response.json(444, 'appBundleId,app_type,token_val,uid,m_code')
-        # 判断推送类型对应key是否存在
-        print('push_type:', push_type)
 
         try:
-            if push_type != '0' and push_type != '1' and push_type != '2':
-                return response.json(173)
-
             # 判断用户是否拥有设备
             device_info_qs = Device_Info.objects.filter(userID_id=userID, UID=uid)
             if not device_info_qs.exists():