Explorar o código

场景日志参数校验

peng %!s(int64=2) %!d(string=hai) anos
pai
achega
12238280ed
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/SensorGateway/SmartSceneController.py

+ 1 - 1
Controller/SensorGateway/SmartSceneController.py

@@ -772,7 +772,7 @@ class SmartSceneView(View):
         end_time = request_dict.get('endTime', None)
 
         if not all([family_id, page, size]):
-            return response.json(444, {'error param': 'page or size'})
+            return response.json(444, {'error param': 'familyId or page or size'})
         if not any([device_id, sub_device_id]):
             return response.json(444, {'error param': 'deviceId and subDeviceId'})
         if sub_device_id: