ソースを参照

中达面单sku增加数量

lzk 1 週間 前
コミット
319abf1810

+ 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,