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