chenjunkai 6 жил өмнө
parent
commit
36f10ad62c

+ 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