From 14ebb2221ea12f4313d303d54c07464179ca5a22 Mon Sep 17 00:00:00 2001 From: zpc Date: Thu, 12 Feb 2026 01:34:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9D=83=E7=9B=8A?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E5=A5=96=E5=8A=B1=E9=A2=86=E5=8F=96=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=88=B8=E7=8A=B6=E6=80=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/HoneyBox/src/HoneyBox.Core/Services/QuanYiService.cs | 4 ++-- server/HoneyBox/src/HoneyBox.Model/Entities/CouponReceife.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }