소스 검색

优化添加APP设备类型接口

guanhailong 3 년 전
부모
커밋
6c43f109c8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      AdminController/DeviceManagementController.py

+ 1 - 1
AdminController/DeviceManagementController.py

@@ -88,7 +88,7 @@ class DeviceManagement(View):
         name = request_dict.get('name', None)
         sort = request_dict.get('sort', None)
 
-        if not all([model, type, name]):
+        if not all([model, type, icon, lang, name, sort]):
             return response.json(444)
         type = int(type)
         model = int(model)