From 3b32b7055293df1ee7f0170f85820f08c8228b43 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 27 六月 2025 10:42:58 +0800
Subject: [PATCH] fix: 修改微信支付使用优惠券的bug

---
 LifePayment/LifePayment.Domain/WeChat/WxRechargeInfo.cs |   38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/LifePayment/LifePayment.Domain/WeChat/WxRechargeInfo.cs b/LifePayment/LifePayment.Domain/WeChat/WxRechargeInfo.cs
index 31035da..69562a2 100644
--- a/LifePayment/LifePayment.Domain/WeChat/WxRechargeInfo.cs
+++ b/LifePayment/LifePayment.Domain/WeChat/WxRechargeInfo.cs
@@ -1,5 +1,6 @@
 锘縰sing LifePayment.Domain.Shared;
 using Newtonsoft.Json;
+using System.Collections.Generic;
 using System.ComponentModel.DataAnnotations;
 
 namespace LifePayment.Application.Contracts
@@ -201,7 +202,7 @@
         /// 浼樻儬鍔熻兘
         /// </summary>
         [JsonProperty("promotion_detail")]
-        public PromotionDetail PromotionDetail { get; set; }
+        public List<PromotionDetail> PromotionDetail { get; set; }
     }
 
 
@@ -241,7 +242,42 @@
         /// </summary>
         [JsonProperty("refund_status")]
         public string RefundStatus { get; set; }
+
+        [JsonProperty("amount")]
+        public RefundAmount Amount { get; set; }
     }
+
+    public class RefundAmount
+    {
+        /// <summary>
+        /// 鎬婚噾棰�
+        /// </summary>
+        [JsonProperty("total", NullValueHandling = NullValueHandling.Ignore)]
+        [Required]
+        public int Total { get; set; }
+
+        /// <summary>
+        /// 閫�娆鹃噾棰�
+        /// </summary>
+        [JsonProperty("refund", NullValueHandling = NullValueHandling.Ignore)]
+        [Required]
+        public int Refund { get; set; }
+
+        /// <summary>
+        /// 鐢ㄦ埛瀹為檯鏀粯閲戦
+        /// </summary>
+        [JsonProperty("payer_total", NullValueHandling = NullValueHandling.Ignore)]
+        [Required]
+        public string PayerTotal { get; set; }
+
+        /// <summary>
+        /// 鐢ㄦ埛閫�娆鹃噾棰�
+        /// </summary>
+        [JsonProperty("payer_refund", NullValueHandling = NullValueHandling.Ignore)]
+        [Required]
+        public string PayerRefund { get; set; }
+    }
+
     public class WxRechargeNotifyResult
     {
         /// <summary>

--
Gitblit v1.9.1