|
@@ -775,6 +775,9 @@ def update_device_shadow(request):
|
|
if push_status:
|
|
if push_status:
|
|
update_dict['push_status'] = push_status
|
|
update_dict['push_status'] = push_status
|
|
us_qs.update(**update_dict)
|
|
us_qs.update(**update_dict)
|
|
|
|
+ # 如果推送状态开启,返回推送url
|
|
|
|
+ data = {}
|
|
|
|
+
|
|
return JsonResponse(status=200, data={'code': 0, 'msg': 'success', 'data': {}})
|
|
return JsonResponse(status=200, data={'code': 0, 'msg': 'success', 'data': {}})
|
|
# 新增
|
|
# 新增
|
|
else:
|
|
else:
|
|
@@ -801,6 +804,7 @@ def update_device_shadow(request):
|
|
if push_status:
|
|
if push_status:
|
|
create_dict['push_status'] = push_status
|
|
create_dict['push_status'] = push_status
|
|
UidSetModel.objects.create(**create_dict)
|
|
UidSetModel.objects.create(**create_dict)
|
|
|
|
+ # 如果推送状态开启,返回推送url
|
|
return JsonResponse(status=200, data={'code': 0, 'msg': 'success', 'data': {}})
|
|
return JsonResponse(status=200, data={'code': 0, 'msg': 'success', 'data': {}})
|
|
else:
|
|
else:
|
|
return JsonResponse(status=200, data={'code': 403, 'msg': 'error etk'})
|
|
return JsonResponse(status=200, data={'code': 403, 'msg': 'error etk'})
|