This commit is contained in:
zpc 2026-02-07 17:52:16 +08:00
parent 836f2d843e
commit 0fc9774d29
3 changed files with 6 additions and 6 deletions

View File

@ -335,9 +335,9 @@ public class GoodsDetailResponse : GoodsListResponse
public int LockIs { get; set; }
/// <summary>
/// 锁定时间
/// 锁定时间(秒)
/// </summary>
public DateTime? LockTime { get; set; }
public int? LockTime { get; set; }
/// <summary>
/// 是否支持积分 0-否 1-是

View File

@ -969,9 +969,9 @@ public class OrderService : IOrderService
// 12. 处理锁箱(一番赏、全局赏、追踪赏)
if (goods.Type == 1 || goods.Type == 6 || goods.Type == 11)
{
if (goods.LockIs == 1 && goods.LockTime.HasValue)
if (goods.LockIs == 1 && goods.LockTime.HasValue && goods.LockTime.Value > 0)
{
await HandleBoxLockingAsync(userId, request.GoodsId, num, request.PrizeNum, (int)goods.LockTime.Value.TimeOfDay.TotalSeconds);
await HandleBoxLockingAsync(userId, request.GoodsId, num, request.PrizeNum, goods.LockTime.Value);
}
}

View File

@ -54,9 +54,9 @@ public partial class Good
public byte LockIs { get; set; }
/// <summary>
/// 锁定时间
/// 锁定时间(秒)
/// </summary>
public DateTime? LockTime { get; set; }
public int? LockTime { get; set; }
/// <summary>
/// 是否支持优惠券 0-否 1-是