|
|
@@ -3315,15 +3315,6 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
Users user = db.Users.FirstOrDefault(m => m.Id == pos.BuyUserId);
|
|
|
if (user != null)
|
|
|
{
|
|
|
- if (pos.IsFirst == 1 && pos.BindingTime > DateTime.Now.AddDays(-30) && pos.CardType < 100)
|
|
|
- {
|
|
|
- RedisDbconn.Instance.AddList("OpenRewardQueue", pos.Id.ToString());
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- return "操作失败" + pos.PosSn + ',' + "不满足发放条件首台绑定30天内非营训机" + '\n';
|
|
|
- }
|
|
|
-
|
|
|
if (pos.IsFirst == 1 && pos.ActivationState == 1 && pos.BindingTime.Value.AddDays(30) <= DateTime.Now && pos.BindingTime.Value.AddDays(60) > DateTime.Now && pos.CreditTrade >= 10000 && pos.CardType < 100)
|
|
|
{
|
|
|
RedisDbconn.Instance.AddList("LeaderRewardQueue", pos.Id.ToString());
|
|
|
@@ -3332,8 +3323,6 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
return "操作失败" + pos.PosSn + ',' + "不满足发放条件首台绑定30天到60天交易超过10000元内非营训机" + '\n';
|
|
|
}
|
|
|
- // RedisDbconn.Instance.AddList("OpenRewardQueue", Id.ToString());
|
|
|
- // RedisDbconn.Instance.AddList("LeaderRewardQueue", Id.ToString());
|
|
|
return "操作成功,请稍后查询";
|
|
|
}
|
|
|
db.Dispose();
|
|
|
@@ -4017,15 +4006,6 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
if (posInfo.Id > 0)
|
|
|
{
|
|
|
- if (posInfo.IsFirst == 1 && posInfo.BindingTime > DateTime.Now.AddDays(-30) && posInfo.CardType < 100)
|
|
|
- {
|
|
|
- RedisDbconn.Instance.AddList("OpenRewardQueue", posInfo.Id.ToString());
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- return "操作失败" + posInfo.PosSn + ',' + "不满足发放条件首台绑定30天内非营训机" + '\n';
|
|
|
- }
|
|
|
-
|
|
|
if (posInfo.IsFirst == 1 && posInfo.ActivationState == 1 && posInfo.BindingTime.Value.AddDays(30) <= DateTime.Now && posInfo.BindingTime.Value.AddDays(60) > DateTime.Now && posInfo.CreditTrade >= 10000 && posInfo.CardType < 100)
|
|
|
{
|
|
|
RedisDbconn.Instance.AddList("LeaderRewardQueue", posInfo.Id.ToString());
|
|
|
@@ -4034,8 +4014,6 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
return "操作失败" + posInfo.PosSn + ',' + "不满足发放条件首台绑定30天到60天交易超过10000元内非营训机" + '\n';
|
|
|
}
|
|
|
- // RedisDbconn.Instance.AddList("OpenRewardQueue", posInfo.Id.ToString());
|
|
|
- // RedisDbconn.Instance.AddList("LeaderRewardQueue", posInfo.Id.ToString());
|
|
|
}
|
|
|
|
|
|
}
|