|
@@ -117,12 +117,12 @@ namespace MySystem
|
|
pro.ProductId = order.ProductId;
|
|
pro.ProductId = order.ProductId;
|
|
}
|
|
}
|
|
List<int> couponIds = new List<int>();
|
|
List<int> couponIds = new List<int>();
|
|
- if (pro.ProductId == 10 || pro.ProductId == 11 || pro.ProductId == 27 || pro.ProductId == 28 || pro.ProductId == 30 || pro.ProductId == -2)
|
|
|
|
|
|
+ if (pro.ProductId == 10 || pro.ProductId == 11 || pro.ProductId == 27 || pro.ProductId == 28 || pro.ProductId == 34 || pro.ProductId == -2)
|
|
{
|
|
{
|
|
order.Status = 2;
|
|
order.Status = 2;
|
|
int BuyCount = pro.ProductCount;
|
|
int BuyCount = pro.ProductCount;
|
|
int Kind = 0;
|
|
int Kind = 0;
|
|
- if (pro.ProductId == 10 || pro.ProductId == 30)
|
|
|
|
|
|
+ if (pro.ProductId == 10 || pro.ProductId == 34)
|
|
{
|
|
{
|
|
Kind = 1;
|
|
Kind = 1;
|
|
}
|
|
}
|
|
@@ -146,7 +146,7 @@ namespace MySystem
|
|
user.LeaderLevel = 2;
|
|
user.LeaderLevel = 2;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(Kind <= 2 && (pro.ProductId == 10 || pro.ProductId == 11 || pro.ProductId == 30 || pro.ProductId == -2))
|
|
|
|
|
|
+ if(Kind <= 2 && (pro.ProductId == 10 || pro.ProductId == 11 || pro.ProductId == 34 || pro.ProductId == -2))
|
|
{
|
|
{
|
|
// 购买600一组机具券,返券
|
|
// 购买600一组机具券,返券
|
|
int CouponCount = 0;
|
|
int CouponCount = 0;
|
|
@@ -161,7 +161,7 @@ namespace MySystem
|
|
string Codes = "";
|
|
string Codes = "";
|
|
var coupons = db.PosCoupons.Where(m => m.IsLock == 0 && m.IsUse == 0 && m.UserId == 0 && m.QueryCount == Kind).OrderBy(m => m.Id).Take(CouponCount).ToList();
|
|
var coupons = db.PosCoupons.Where(m => m.IsLock == 0 && m.IsUse == 0 && m.UserId == 0 && m.QueryCount == Kind).OrderBy(m => m.Id).Take(CouponCount).ToList();
|
|
int RecordId = 0;
|
|
int RecordId = 0;
|
|
- if(coupons.Count > 0 && (pro.ProductId == 30 || pro.ProductId == -2))
|
|
|
|
|
|
+ if(coupons.Count > 0 && (pro.ProductId == 34 || pro.ProductId == -2))
|
|
{
|
|
{
|
|
var adds = db.HelpProfitExchange.Add(new HelpProfitExchange()
|
|
var adds = db.HelpProfitExchange.Add(new HelpProfitExchange()
|
|
{
|
|
{
|
|
@@ -180,7 +180,7 @@ namespace MySystem
|
|
item.CreateDate = DateTime.Now;
|
|
item.CreateDate = DateTime.Now;
|
|
item.UserId = order.UserId;
|
|
item.UserId = order.UserId;
|
|
item.UpdateDate = DateTime.Now.AddDays(180);
|
|
item.UpdateDate = DateTime.Now.AddDays(180);
|
|
- if(pro.ProductId == 30 || pro.ProductId == -2)
|
|
|
|
|
|
+ if(pro.ProductId == 34 || pro.ProductId == -2)
|
|
{
|
|
{
|
|
item.HelpProfitFlag = 1;
|
|
item.HelpProfitFlag = 1;
|
|
db.HelpProfitExchangeDetail.Add(new HelpProfitExchangeDetail()
|
|
db.HelpProfitExchangeDetail.Add(new HelpProfitExchangeDetail()
|