From 423470b4807e3355dc775304990c0ef84d4b6030 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Mon, 28 Oct 2024 17:52:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E8=B4=A7=E7=BA=B8?= =?UTF-8?q?=E6=AF=94=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskShippingOrderCompareService.cs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskShippingOrderCompareService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskShippingOrderCompareService.cs index 03d73f33..8546c1b6 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskShippingOrderCompareService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskShippingOrderCompareService.cs @@ -165,15 +165,19 @@ namespace Myshipping.Application } } - if (paramList.Any(p => p.ParaCode == "ShipCompareAccountLUHAI")) + //如果不是云港通,就试试陆海通 + if (!isYGT) { - var currArg = paramList.FirstOrDefault(p => p.ParaCode == "ShipCompareAccountLUHAI").ParaValue.Split(new char[] { ',' }).ToArray(); - - if (currArg.Contains(mainInfo.YardCode)) + if (paramList.Any(p => p.ParaCode == "ShipCompareAccountLUHAI")) { - isYGT = true; + var currArg = paramList.FirstOrDefault(p => p.ParaCode == "ShipCompareAccountLUHAI").ParaValue.Split(new char[] { ',' }).ToArray(); - webAccountConfig = _webAccountConfig.GetAccountConfig("LuHaiTong", UserManager.UserId).GetAwaiter().GetResult(); + if (currArg.Contains(mainInfo.YardCode)) + { + isLuHai = true; + + webAccountConfig = _webAccountConfig.GetAccountConfig("LuHaiTong", UserManager.UserId).GetAwaiter().GetResult(); + } } }