diff --git a/server/HoneyBox/src/HoneyBox.Core/Services/QuanYiService.cs b/server/HoneyBox/src/HoneyBox.Core/Services/QuanYiService.cs index b3f7af4e..3f7399e9 100644 --- a/server/HoneyBox/src/HoneyBox.Core/Services/QuanYiService.cs +++ b/server/HoneyBox/src/HoneyBox.Core/Services/QuanYiService.cs @@ -216,8 +216,8 @@ public class QuanYiService : IQuanYiService EndTime = endTime, CreatedAt = DateTime.UtcNow, CouponId = reward.Id, - State = ttype ?? 0, - Status = 1, + State = 0, // State字段未使用 + Status = 0, // 0=未使用/可用, 1=已使用, 2=已过期 Ttype = ttype ?? 0 }; _dbContext.CouponReceives.Add(couponReceive); diff --git a/server/HoneyBox/src/HoneyBox.Model/Entities/CouponReceife.cs b/server/HoneyBox/src/HoneyBox.Model/Entities/CouponReceife.cs index 2ad4e4e5..5d32f399 100644 --- a/server/HoneyBox/src/HoneyBox.Model/Entities/CouponReceife.cs +++ b/server/HoneyBox/src/HoneyBox.Model/Entities/CouponReceife.cs @@ -44,12 +44,12 @@ public partial class CouponReceife public int? CouponId { get; set; } /// - /// 状态: 0禁用 1启用 + /// 使用状态: 0未使用/可用 1已使用 2已过期 /// public byte Status { get; set; } /// - /// 使用状态: 0未使用 1已使用 + /// 状态(未使用字段,保留兼容) /// public byte? State { get; set; }