|
|
@ -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)
|
|
|
|
{
|
|
|
|
{
|
|
|
|