chenjunkai 6 年之前
父節點
當前提交
36f10ad62c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Controller/EquipmentInfo.py

+ 2 - 0
Controller/EquipmentInfo.py

@@ -277,6 +277,8 @@ class AddDetectionView(TemplateView):
             Equipment_Info.objects.bulk_create(qs_list)
             Equipment_Info.objects.bulk_create(qs_list)
             print(2)
             print(2)
             return response.json(0)
             return response.json(0)
+        else:
+            return response.json(10,'无设备开启')
 
 
 
 
 # http://192.168.136.40:8077/detect/status?token=local&id=138001380001543918745881545&iSNotification=0
 # http://192.168.136.40:8077/detect/status?token=local&id=138001380001543918745881545&iSNotification=0