瀏覽代碼

网关密码显示明文

peng 2 年之前
父節點
當前提交
2db618f82c
共有 1 個文件被更改,包括 2 次插入0 次删除
  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']: