From d17da03f48eb67a14c21ee6f73b1ca370dd5c031 Mon Sep 17 00:00:00 2001 From: lxw Date: Wed, 19 Jun 2024 16:43:39 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Execute/Api/TboxApi.cs | 2 +- Service/Mgr/SwapOrderMgr.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Service/Execute/Api/TboxApi.cs b/Service/Execute/Api/TboxApi.cs index 69d5f69..b44832d 100644 --- a/Service/Execute/Api/TboxApi.cs +++ b/Service/Execute/Api/TboxApi.cs @@ -12,7 +12,7 @@ public class TBoxApi { private static readonly ILog Log = LogManager.GetLogger("TboxApi"); - private static readonly string BASE_URL = "http://localhost:5036/Car"; + private static readonly string BASE_URL = "http://localhost:5036"; private static int _times = 5; private static int _successTimes = 3; diff --git a/Service/Mgr/SwapOrderMgr.cs b/Service/Mgr/SwapOrderMgr.cs index 460774d..bb70c0d 100644 --- a/Service/Mgr/SwapOrderMgr.cs +++ b/Service/Mgr/SwapOrderMgr.cs @@ -71,9 +71,9 @@ public class SwapOrderMgr var count = _swapOrderRepository.GetCount(i => i.SwapResult == 1 && i.SwapEndTime >= DateTime.Today && i.SwapEndTime < swapOrder.SwapEndTime); - - var uploadSwapOrder = CloudApi.UploadSwapOrder(swapOrder, count++, swapOrderBattery, uploadType); swapOrderReportClouds.TryGetValue(swapOrder.Id, out SwapOrderReportCloud value); + var uploadSwapOrder = CloudApi.UploadSwapOrder(swapOrder, count++, swapOrderBattery, uploadType,value); + if (uploadSwapOrder == 0) { swapOrder.CloudReportStatus = 1;