|
@@ -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():
|