Browse Source

Fix `CreateOrderAsync` beginTime check

pull/184/head
Jadyn 4 years ago
parent
commit
e26576b942
  1. 2
      plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Application/EasyAbp/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlanAppService.cs

2
plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Application/EasyAbp/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlanAppService.cs

@ -211,7 +211,7 @@ public class FlashSalePlanAppService :
var now = Clock.Now;
if (plan.BeginTime > now)
{
throw new BusinessException(FlashSalesErrorCodes.ProductIsNotPublished);
throw new BusinessException(FlashSalesErrorCodes.FlashSaleNotStarted);
}
if (now >= plan.EndTime)

Loading…
Cancel
Save