|
@@ -305,8 +305,7 @@ namespace MySystem
|
|
|
//推荐奖励
|
|
|
DirectPrize(db, order.Id, order.UserId, pro.ProductCount);
|
|
|
//推荐下单上级获得30天的机具循环天数(盟主自己得)
|
|
|
- DateTime now = DateTime.Now;
|
|
|
- var posList = db.PosMachinesTwo.Select(m => new { m.Id, m.UserId, m.BindingState, m.RecycEndDate }).Where(m => m.UserId == order.UserId && m.BindingState == 0 && m.RecycEndDate != null && m.RecycEndDate > now).ToList();
|
|
|
+ var posList = db.PosMachinesTwo.Select(m => new { m.Id, m.UserId, m.BindingState, m.RecycEndDate }).Where(m => m.UserId == order.UserId && m.BindingState == 0 && m.RecycEndDate != null).ToList();
|
|
|
foreach (var subPos in posList)
|
|
|
{
|
|
|
PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == subPos.Id);
|