6.12现场代码提交

master
lxw 6 months ago
parent ccbe64bcce
commit 50290b82d7

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

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

Loading…
Cancel
Save