Добавлено новое поле ssd в интерфейс LaximoUnit и обновлено извлечение SSD узла в классе LaximoService. Это улучшает структуру данных и позволяет более эффективно работать с информацией об узлах.
This commit is contained in:
@ -146,6 +146,7 @@ export interface LaximoUnit {
|
||||
description?: string
|
||||
imageurl?: string
|
||||
largeimageurl?: string
|
||||
ssd?: string // ИСПРАВЛЕНИЕ: Добавляем поле SSD для узла
|
||||
details?: LaximoDetail[]
|
||||
attributes?: LaximoDetailAttribute[]
|
||||
}
|
||||
@ -2259,6 +2260,7 @@ class LaximoService {
|
||||
const unitId = this.extractAttribute(unitAttributes, 'unitid')
|
||||
const unitName = this.extractAttribute(unitAttributes, 'name')
|
||||
const unitCode = this.extractAttribute(unitAttributes, 'code')
|
||||
const unitSsd = this.extractAttribute(unitAttributes, 'ssd') // ИСПРАВЛЕНИЕ: Извлекаем SSD узла
|
||||
let imageUrl = this.extractAttribute(unitAttributes, 'imageurl')
|
||||
let largeImageUrl = this.extractAttribute(unitAttributes, 'largeimageurl')
|
||||
|
||||
@ -2270,12 +2272,21 @@ class LaximoService {
|
||||
largeImageUrl = largeImageUrl.replace(/&/g, '&')
|
||||
}
|
||||
|
||||
console.log('🔧 Найден узел:', { unitId, unitName, unitCode, imageUrl, largeImageUrl })
|
||||
console.log('🔧 Найден узел:', {
|
||||
unitId,
|
||||
unitName,
|
||||
unitCode,
|
||||
unitSsd: unitSsd ? `${unitSsd.substring(0, 50)}...` : 'отсутствует',
|
||||
unitSsdLength: unitSsd?.length,
|
||||
imageUrl,
|
||||
largeImageUrl
|
||||
})
|
||||
|
||||
const unit: LaximoUnit = {
|
||||
unitid: unitId,
|
||||
name: unitName,
|
||||
code: unitCode,
|
||||
ssd: unitSsd, // ИСПРАВЛЕНИЕ: Добавляем SSD узла в объект
|
||||
imageurl: imageUrl || undefined,
|
||||
largeimageurl: largeImageUrl || undefined,
|
||||
details: []
|
||||
|
Reference in New Issue
Block a user