|
@@ -287,10 +287,6 @@ namespace MySystem
|
|
}
|
|
}
|
|
decimal CheckMoney = 1000;
|
|
decimal CheckMoney = 1000;
|
|
int CheckDays = 30;
|
|
int CheckDays = 30;
|
|
- if (pos.BrandId == 6)
|
|
|
|
- {
|
|
|
|
- CheckMoney = 5000;
|
|
|
|
- }
|
|
|
|
//联动
|
|
//联动
|
|
if(BankCardType == 1 && trade.TradeType == "M015" && (pos.BrandId == 10 || pos.BrandId == 11))
|
|
if(BankCardType == 1 && trade.TradeType == "M015" && (pos.BrandId == 10 || pos.BrandId == 11))
|
|
{
|
|
{
|
|
@@ -438,30 +434,15 @@ namespace MySystem
|
|
ActStatus = ActStatus,
|
|
ActStatus = ActStatus,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ // 立刷30天内刷满5000,无服务费机具,返50
|
|
|
|
+ if (pos.BrandId == 6 && decimal.Parse(function.CheckNum(pos.SeoKeyword)) == 0 && pos.CreditTrade >= 5000 && pos.ActivationState == 1 && pos.BindingTime > DateTime.Now.AddDays(-30))
|
|
|
|
+ {
|
|
|
|
+ LiShuaActPrize(db, pos, 50);
|
|
|
|
+ }
|
|
// 立刷60天内刷满10000,再返40
|
|
// 立刷60天内刷满10000,再返40
|
|
if (pos.BrandId == 6 && decimal.Parse(function.CheckNum(pos.SeoKeyword)) > 0 && pos.ActivationState == 1 && pos.CreditTrade >= 10000 && pos.BindingTime > DateTime.Now.AddDays(-60))
|
|
if (pos.BrandId == 6 && decimal.Parse(function.CheckNum(pos.SeoKeyword)) > 0 && pos.ActivationState == 1 && pos.CreditTrade >= 10000 && pos.BindingTime > DateTime.Now.AddDays(-60))
|
|
{
|
|
{
|
|
- // PxcModels.PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId && m.Sort == 1);
|
|
|
|
- PxcModels.PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId);
|
|
|
|
- if(merchant != null)
|
|
|
|
- {
|
|
|
|
- PxcModels.Users getUser = db.Users.FirstOrDefault(m => m.Id == pos.BuyUserId) ?? new PxcModels.Users();
|
|
|
|
- int BuyTopUserId = 0;
|
|
|
|
- string ParentNav = getUser.ParentNav;
|
|
|
|
- if (!string.IsNullOrEmpty(ParentNav))
|
|
|
|
- {
|
|
|
|
- string[] ParentNavList = ParentNav.Trim(',').Replace(",,", ",").Split(',');
|
|
|
|
- if (ParentNavList.Length > 1)
|
|
|
|
- {
|
|
|
|
- BuyTopUserId = int.Parse(ParentNavList[1]);
|
|
|
|
- }
|
|
|
|
- else if (ParentNavList.Length == 1)
|
|
|
|
- {
|
|
|
|
- BuyTopUserId = int.Parse(ParentNavList[0]);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- StatService.Instance.doActiveReward(db, merchant, pos, getUser.Id, getUser.ParentNav, BuyTopUserId, 40, 12);
|
|
|
|
- }
|
|
|
|
|
|
+ LiShuaActPrize(db, pos, 40);
|
|
}
|
|
}
|
|
db.SpOrderNos.Add(new PxcModels.SpOrderNos()
|
|
db.SpOrderNos.Add(new PxcModels.SpOrderNos()
|
|
{
|
|
{
|
|
@@ -497,6 +478,38 @@ namespace MySystem
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //立刷格外奖励
|
|
|
|
+ private void LiShuaActPrize(PxcModels.WebCMSEntities db, PxcModels.PosMachinesTwo pos, int prize)
|
|
|
|
+ {
|
|
|
|
+ PxcModels.PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId);
|
|
|
|
+ if(merchant != null)
|
|
|
|
+ {
|
|
|
|
+ PxcModels.Users getUser = db.Users.FirstOrDefault(m => m.Id == pos.BuyUserId) ?? new PxcModels.Users();
|
|
|
|
+ int BuyTopUserId = 0;
|
|
|
|
+ string ParentNav = getUser.ParentNav;
|
|
|
|
+ if (!string.IsNullOrEmpty(ParentNav))
|
|
|
|
+ {
|
|
|
|
+ string[] ParentNavList = ParentNav.Trim(',').Replace(",,", ",").Split(',');
|
|
|
|
+ if (ParentNavList.Length > 1)
|
|
|
|
+ {
|
|
|
|
+ BuyTopUserId = int.Parse(ParentNavList[1]);
|
|
|
|
+ }
|
|
|
|
+ else if (ParentNavList.Length == 1)
|
|
|
|
+ {
|
|
|
|
+ BuyTopUserId = int.Parse(ParentNavList[0]);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(prize == 50)
|
|
|
|
+ {
|
|
|
|
+ StatService.Instance.doActiveReward(db, merchant, pos, getUser.Id, getUser.ParentNav, BuyTopUserId, 50);
|
|
|
|
+ }
|
|
|
|
+ if(prize == 40)
|
|
|
|
+ {
|
|
|
|
+ StatService.Instance.doActiveReward(db, merchant, pos, getUser.Id, getUser.ParentNav, BuyTopUserId, 40, 12);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
private int GetLeShuaHaiKe(int UserId, int BrandId)
|
|
private int GetLeShuaHaiKe(int UserId, int BrandId)
|
|
{
|
|
{
|
|
if(DateTime.Now >= DateTime.Parse("2023-08-01 00:00:00"))
|
|
if(DateTime.Now >= DateTime.Parse("2023-08-01 00:00:00"))
|