chenjunkai 6 years ago
parent
commit
36f10ad62c
1 changed files with 2 additions and 0 deletions
  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)
             print(2)
             return response.json(0)
+        else:
+            return response.json(10,'无设备开启')
 
 
 # http://192.168.136.40:8077/detect/status?token=local&id=138001380001543918745881545&iSNotification=0