|
@@ -128,6 +128,13 @@ namespace MySystem
|
|
MachineData.BindCount += 1;
|
|
MachineData.BindCount += 1;
|
|
MachineData.UnBindCount -= 1;
|
|
MachineData.UnBindCount -= 1;
|
|
db.SaveChanges();
|
|
db.SaveChanges();
|
|
|
|
+
|
|
|
|
+ if(pos.BuyUserId == 0 && pos.PreUserId > 0)
|
|
|
|
+ {
|
|
|
|
+ RedisDbconn.Instance.Set("CheckUserBindPrePos:" + pos.PreUserId, "您的名下有已绑定的预发机 sn:" + pos.PosSn + " 尚未申请,绑定30分钟内申请即可免费自动补录,请前往客小爽产品中点击机具申请继续完成申请");
|
|
|
|
+ int ExpireTime = 60 * 25;
|
|
|
|
+ RedisDbconn.Instance.SetExpire("CheckUserBindPrePos:" + pos.PreUserId, ExpireTime);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
tran.Commit();
|
|
tran.Commit();
|