From 6be4a0652f9e257d7c9681762a3d13e686b8d72c Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Sun, 14 Aug 2022 17:13:55 +0800 Subject: [PATCH] Disable auditing of IFlashSalePlanAppService.OrderAsync --- .../FlashSales/FlashSalePlans/FlashSalePlanAppService.cs | 2 ++ .../FlashSales/FlashSalePlans/FlashSalePlanController.cs | 2 ++ 2 files changed, 4 insertions(+) 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 b61b3a50..084f1f1b 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 @@ -13,6 +13,7 @@ using Microsoft.Extensions.Caching.Distributed; using Microsoft.Extensions.Options; using Volo.Abp; using Volo.Abp.Application.Dtos; +using Volo.Abp.Auditing; using Volo.Abp.Caching; using Volo.Abp.Data; using Volo.Abp.DistributedLocking; @@ -222,6 +223,7 @@ public class FlashSalePlanAppService : return new FlashSalePlanPreOrderDto { ExpiresTime = Clock.Normalize(expiresTime.LocalDateTime), ExpiresInSeconds = Options.PreOrderExpires.TotalSeconds }; } + [DisableAuditing] [Authorize] public virtual async Task OrderAsync(Guid id, CreateOrderInput input) { diff --git a/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.HttpApi/EasyAbp/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlanController.cs b/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.HttpApi/EasyAbp/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlanController.cs index bd18e94e..6ed92500 100644 --- a/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.HttpApi/EasyAbp/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlanController.cs +++ b/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.HttpApi/EasyAbp/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlanController.cs @@ -4,6 +4,7 @@ using EasyAbp.EShop.Plugins.FlashSales.FlashSalePlans.Dtos; using Microsoft.AspNetCore.Mvc; using Volo.Abp; using Volo.Abp.Application.Dtos; +using Volo.Abp.Auditing; namespace EasyAbp.EShop.Plugins.FlashSales.FlashSalePlans; @@ -57,6 +58,7 @@ public class FlashSalePlanController : return Service.PreOrderAsync(id); } + [DisableAuditing] [HttpPost("{id}/order")] public virtual Task OrderAsync(Guid id, CreateOrderInput input) {