|
@@ -66,10 +66,14 @@ class DetectControllerView(View):
|
|
|
appBundleId = request_dict.get('appBundleId', None)
|
|
|
push_type = request_dict.get('push_type', None)
|
|
|
status = request_dict.get('status', None)
|
|
|
- if status == 0:
|
|
|
+ print('status')
|
|
|
+ print(status)
|
|
|
+ if status == '0':
|
|
|
UID_App.objects.filter(appBundleId=appBundleId, userID_id=userID, token_val=token_val, uid=uid).delete()
|
|
|
return response.json(0)
|
|
|
- elif status == 1:
|
|
|
+ elif status == '1':
|
|
|
+ # return response.json(10)
|
|
|
+
|
|
|
dvqs = Device_Info.objects.filter(userID_id=userID, UID=uid)
|
|
|
aiqs = App_Info.objects.filter(appBundleId=appBundleId).values('app_type')
|
|
|
print(dvqs)
|
|
@@ -88,6 +92,7 @@ class DetectControllerView(View):
|
|
|
updTime=now_time)
|
|
|
except Exception as e:
|
|
|
print(repr(e))
|
|
|
+ return response.json(10,repr(e))
|
|
|
else:
|
|
|
utko = UidTokenObject()
|
|
|
utko.generate(data={'uid': uid})
|
|
@@ -97,7 +102,7 @@ class DetectControllerView(View):
|
|
|
else:
|
|
|
return response.json(173)
|
|
|
|
|
|
-
|
|
|
+# 移动侦测接口
|
|
|
class NotificationView(View):
|
|
|
|
|
|
def get(self, request, *args, **kwargs):
|