6.12现场代码提交

master
lxw 5 months ago
parent ccbe64bcce
commit 50290b82d7

@ -13,7 +13,7 @@ namespace Service.Execute.Api;
public abstract class CloudApi public abstract class CloudApi
{ {
private const int TimeSpan = 60; private const int TimeSpan = 10;
private static readonly ILog Log = LogManager.GetLogger("CloudApi"); private static readonly ILog Log = LogManager.GetLogger("CloudApi");

@ -64,8 +64,14 @@ public class SwapOrderMgr
continue; continue;
} }
if (string.IsNullOrEmpty(swapOrder.CloudSn))
{
continue;
}
var count = _swapOrderRepository.GetCount(i => var count = _swapOrderRepository.GetCount(i =>
i.SwapResult == 1 && i.SwapEndTime >= DateTime.Today && i.SwapEndTime < swapOrder.SwapEndTime); i.SwapResult == 1 && i.SwapEndTime >= DateTime.Today && i.SwapEndTime < swapOrder.SwapEndTime);
var uploadSwapOrder = CloudApi.UploadSwapOrder(swapOrder, count++, swapOrderBattery, uploadType); var uploadSwapOrder = CloudApi.UploadSwapOrder(swapOrder, count++, swapOrderBattery, uploadType);
if (uploadSwapOrder == 0) if (uploadSwapOrder == 0)
{ {

Loading…
Cancel
Save