Browse Source

网关密码显示明文

peng 2 years ago
parent
commit
2db618f82c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Controller/SensorGateway/EquipmentFamilyController.py

+ 2 - 0
Controller/SensorGateway/EquipmentFamilyController.py

@@ -1035,6 +1035,8 @@ class EquipmentFamilyView(View):
                     'isCameraOpenCloud', 'serial_number'
                 ).first()
                 if device_qs:
+                    if device_qs['View_Password']:
+                        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']: