From e26576b94218d9dcf5792d3a7d01d6dd5997d7d2 Mon Sep 17 00:00:00 2001 From: Jadyn Date: Thu, 7 Jul 2022 00:41:21 +0800 Subject: [PATCH] Fix `CreateOrderAsync` beginTime check --- .../FlashSales/FlashSalePlans/FlashSalePlanAppService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Application/EasyAbp/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlanAppService.cs b/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Application/EasyAbp/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlanAppService.cs index ee092aaf..06b0c5e0 100644 --- a/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Application/EasyAbp/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlanAppService.cs +++ b/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)