From 511785a6178f88dd4c62f57472fbcdd84b48df44 Mon Sep 17 00:00:00 2001 From: Bivekich Date: Sat, 5 Jul 2025 13:35:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=B5=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D0=B5=20ssd=20=D0=B2=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80?= =?UTF-8?q?=D1=84=D0=B5=D0=B9=D1=81=20LaximoUnit=20=D0=B8=20=D0=BE=D0=B1?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=BE=20=D0=B8=D0=B7=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20SSD=20=D1=83=D0=B7?= =?UTF-8?q?=D0=BB=D0=B0=20=D0=B2=20=D0=BA=D0=BB=D0=B0=D1=81=D1=81=D0=B5=20?= =?UTF-8?q?LaximoService.=20=D0=AD=D1=82=D0=BE=20=D1=83=D0=BB=D1=83=D1=87?= =?UTF-8?q?=D1=88=D0=B0=D0=B5=D1=82=20=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82?= =?UTF-8?q?=D1=83=D1=80=D1=83=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=BE=D0=B7=D0=B2=D0=BE=D0=BB=D1=8F=D0=B5=D1=82?= =?UTF-8?q?=20=D0=B1=D0=BE=D0=BB=D0=B5=D0=B5=20=D1=8D=D1=84=D1=84=D0=B5?= =?UTF-8?q?=D0=BA=D1=82=D0=B8=D0=B2=D0=BD=D0=BE=20=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=B0=D1=82=D1=8C=20=D1=81=20=D0=B8=D0=BD=D1=84=D0=BE?= =?UTF-8?q?=D1=80=D0=BC=D0=B0=D1=86=D0=B8=D0=B5=D0=B9=20=D0=BE=D0=B1=20?= =?UTF-8?q?=D1=83=D0=B7=D0=BB=D0=B0=D1=85.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/laximo-service.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/lib/laximo-service.ts b/src/lib/laximo-service.ts index 34efc8c..23af7af 100644 --- a/src/lib/laximo-service.ts +++ b/src/lib/laximo-service.ts @@ -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: []