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