From ebb1ca99dfb8914869ebf47856c9bcdd454ee985 Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Wed, 26 Jul 2023 17:51:00 +0800 Subject: [PATCH] =?UTF-8?q?VGM=E7=9B=B4=E5=8F=91=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E8=88=B9=E5=8F=B8=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 6e423735..7eca2815 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -3662,8 +3662,9 @@ namespace Myshipping.Application throw Oops.Bah(BookingErrorCode.BOOK127); } - var config = _cache.GetAllTenantParam().Result.FirstOrDefault(x => x.TenantId == UserManager.TENANT_ID && x.ParaCode == "VGM_SEND_CHANNEL"); - if (config != null && config.ItemCode == "USE_MYSHIPPING") //使用大简云发送vgm + var config = _cache.GetAllTenantParam().Result.FirstOrDefault(x => x.TenantId == UserManager.TENANT_ID && x.ParaCode == "VgmDirectSendCarrierId"); + var arrCarr = config.ItemCode.Split(",", StringSplitOptions.RemoveEmptyEntries); + if (!arrCarr.Contains(order.CARRIERID)) //使用大简云发送vgm { //ETD不能为空 if (!order.ETD.HasValue)