231
This commit is contained in:
parent
836f2d843e
commit
0fc9774d29
|
|
@ -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-是
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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-是
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user