Explorar o código

修改查询设备返回值字段

peng %!s(int64=2) %!d(string=hai) anos
pai
achega
8b3cfdb23d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: