浏览代码

音响显示问题

lcl 1 年之前
父节点
当前提交
1a27210d87
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      AppStart/Redis/Mysql/PosMachinesDbconn.cs

+ 2 - 2
AppStart/Redis/Mysql/PosMachinesDbconn.cs

@@ -67,7 +67,7 @@ namespace MySystem
                 }
             }
             WebCMSEntities db = new WebCMSEntities();
-            var mysqllist = db.PosMachines.Select(m => new { m.Id, m.BindMerchantId }).Where(m => m.BindMerchantId == MerchantId).OrderByDescending(m => m.Id).ToList();
+            var mysqllist = db.PosMachines.Select(m => new { m.Id, m.BindMerchantId, m.DeviceKind }).Where(m => m.BindMerchantId == MerchantId && m.DeviceKind == "1").OrderByDescending(m => m.Id).ToList();
             if (mysqllist.Count > 0)
             {
                 List<int> newlist = new List<int>();
@@ -80,7 +80,7 @@ namespace MySystem
                 {
                     RedisDbconn.Instance.AddRightList(key, sub);
                 }
-                RedisDbconn.Instance.SetExpire(key, Library.function.get_Random(1800, 5400));
+                RedisDbconn.Instance.SetExpire(key, Library.function.get_Random(30, 60));
             }
             db.Dispose();
             return list;