|
@@ -883,9 +883,10 @@ namespace MySystem
|
|
|
{
|
|
|
function.WriteLog("\n\n" + DateTime.Now.ToString() + "\nposid:" + content, "开机奖励发放日志");
|
|
|
int PosId = int.Parse(content);
|
|
|
+ Thread.Sleep(1000);
|
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
|
- List<PosMachinesTwo> posList = db.PosMachinesTwo.Where(m => m.Id == PosId && m.ActivationState == 1 && !string.IsNullOrEmpty(m.SeoKeyword) && m.SeoKeyword != "0" && m.CreditTrade >= 1000).ToList();
|
|
|
- foreach (PosMachinesTwo pos in posList)
|
|
|
+ PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == PosId && m.ActivationState == 1 && !string.IsNullOrEmpty(m.SeoKeyword) && m.SeoKeyword != "0" && m.CreditTrade >= 1000);
|
|
|
+ if (pos != null)
|
|
|
{
|
|
|
function.WriteLog("sn:" + pos.PosSn, "开机奖励发放日志");
|
|
|
if (pos.BindingTime > DateTime.Now.AddDays(-30))
|