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)
             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