Эх сурвалжийг харах

去掉对push_type的判断

locky 2 жил өмнө
parent
commit
3e8d860b92

+ 0 - 5
Controller/DetectControllerV2.py

@@ -96,13 +96,8 @@ class DetectControllerViewV2(View):
         # 关闭推送
         # 关闭推送
         if not all([appBundleId, app_type, token_val, uid, m_code]):
         if not all([appBundleId, app_type, token_val, uid, m_code]):
             return response.json(444, '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:
         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)
             device_info_qs = Device_Info.objects.filter(userID_id=userID, UID=uid)
             if not device_info_qs.exists():
             if not device_info_qs.exists():