Browse Source

修改bug

zhangdongming 2 năm trước cách đây
mục cha
commit
7a2bfb048d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/SensorGateway/EquipmentFamilyController.py

+ 1 - 1
Controller/SensorGateway/EquipmentFamilyController.py

@@ -1036,7 +1036,7 @@ class EquipmentFamilyView(View):
                 ).first()
                 if device_qs:
                     if device_qs['View_Password']:
-                        device_qs['View_Password'] = CommonService.encode_data(item['View_Password'], 1, 4)
+                        device_qs['View_Password'] = CommonService.encode_data(device_qs['View_Password'], 1, 4)
                     device_qs['sensorStatus'] = 0
                     device_qs['roomName'] = room_name
                     if device_qs['primaryUserID'] and device_qs['id'] == device_qs['primaryUserID']: