From bf4a23b725b631188dc41fd3f6711ee5883f84c6 Mon Sep 17 00:00:00 2001 From: shanji <18996038927@163.com> Date: Sat, 24 Feb 2024 00:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=9E=B6=E9=A1=BA=E5=BA=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Server.Business/PlatformSDK/JDBusiness.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index 81b25897..c9b7a93d 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -1294,7 +1294,9 @@ namespace BBWY.Server.Business var updateSkuTitleParamList = new List(); var imageWriteUpdateRequestList = new List(); //var skuIndex = noUsedIndexList.Count() - 1; + var skuIndex = isStruts ? strutsSaleAttrValueList.Count() - 1 : noUsedIndexList.Count() - 1; + var noUseIndex = noUsedIndexList.Count() - 1; for (var i = 0; i < request.GiftTemplateSkuList.Count(); i++) { @@ -1329,8 +1331,8 @@ namespace BBWY.Server.Business type = "com.jd.pop.ware.ic.api.domain.Prop", attrId = attrId, attrValueAlias = new List(){ attrValueAlias }, - index = noUsedIndexList[skuIndex], - attrValuesSeqNo = new List(){ noUsedIndexList[skuIndex] } + index = noUsedIndexList[noUseIndex], + attrValuesSeqNo = new List(){ noUsedIndexList[noUseIndex] } } }, saleAttrTemplateId = "POP_MODEL" @@ -1351,6 +1353,7 @@ namespace BBWY.Server.Business } } skuIndex--; + noUseIndex--; //takeColorIndex--; skusParamList.Add(p); }