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); }