Преглед изворни кода

优化添加APP设备类型接口

guanhailong пре 3 година
родитељ
комит
035801b2dc
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, icon, lang, name, sort]):
+        if not all([model, type, name]):
             return response.json(444)
         type = int(type)
         model = int(model)