Browse Source

中达面单sku增加数量

lzk 1 week ago
parent
commit
319abf1810
1 changed files with 1 additions and 1 deletions
  1. 1 1
      3.Service/XYY.Service.Standard.ChannelApi/ZhongDaHaiWai/Api.cs

+ 1 - 1
3.Service/XYY.Service.Standard.ChannelApi/ZhongDaHaiWai/Api.cs

@@ -177,7 +177,7 @@ namespace XYY.Service.Standard.ChannelApi.ZhongDaHaiWai
         {
             if (order.ReceiverStreet.Length > 64) { throw new Exception("收件人地址不得超过64个字符!"); }
             //先处理产品品名和sku
-            var goodInfos = goods.GroupBy(x => x.EnName).Select(x => new { name = x.Key, sku = x.FirstOrDefault().GoodsNumber });
+            var goodInfos = goods.GroupBy(x => x.EnName).Select(x => new { name = x.Key, sku = x.FirstOrDefault().GoodsNumber+"*"+x.Sum(y=>y.Quantity) });
             DataUploadRequest dataUploadRequest = new DataUploadRequest()
             {
                 apiKey = channel.ApiKey,