From acb2db839731fb8533345ef6dbee253ac77fcaac Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Wed, 15 Oct 2025 23:00:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=95=86=E5=93=81=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dtos/Pay/GoodsListOutput.cs | 12 ++++++++---- .../Services/PayService.cs | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application.Contracts/Dtos/Pay/GoodsListOutput.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application.Contracts/Dtos/Pay/GoodsListOutput.cs index 7a25970f..e2602dab 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application.Contracts/Dtos/Pay/GoodsListOutput.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application.Contracts/Dtos/Pay/GoodsListOutput.cs @@ -21,7 +21,7 @@ public class GoodsListOutput /// 商品参考价格 /// public decimal ReferencePrice { get; set; } - + /// /// 商品实际价格(折扣后的价格) /// @@ -31,7 +31,7 @@ public class GoodsListOutput /// 折扣金额(仅尊享包) /// public decimal? DiscountAmount { get; set; } - + /// /// 商品类别 /// @@ -43,9 +43,13 @@ public class GoodsListOutput public string Remark { get; set; } - /// /// 折扣说明(仅尊享包) /// public string? DiscountDescription { get; set; } -} + + /// + /// 商品类型 + /// + public GoodsTypeEnum GoodsType { get; set; } +} \ No newline at end of file diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/PayService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/PayService.cs index 7e38d42b..f40a46c3 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/PayService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/PayService.cs @@ -261,7 +261,8 @@ public class PayService : ApplicationService, IPayService GoodsCategory = goodsType.GetGoodsCategory().ToString(), Remark = goodsType.GetRemark(), DiscountAmount = discountAmount, - DiscountDescription = discountDescription + DiscountDescription = discountDescription, + GoodsType = goodsType }; goodsList.Add(goodsItem);