Pārlūkot izejas kodu

修改查询设备返回值字段

peng 2 gadi atpakaļ
vecāks
revīzija
8b3cfdb23d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Controller/SensorGateway/SubDeviceController.py

+ 1 - 1
Controller/SensorGateway/SubDeviceController.py

@@ -619,7 +619,7 @@ class GatewaySubDeviceView(View):
                             'roomName': room_name,
                             'familyId': family_id
                         })
-                device_dict['sub_device'] = sub_device
+                device_dict['subDevice'] = sub_device
                 device_list.append(device_dict)
             return response.json(0, device_list)
         except Exception as e: