|
|
@@ -178,11 +178,17 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
List<string> query = db.ApiUrlRewrite.Where(m => m.QueryCount == 1).ToList().Select(m => m.UrlPath).ToList();
|
|
|
RedisDbconn.Instance.Clear("ApiUrlRewriteList1");
|
|
|
- RedisDbconn.Instance.AddList("ApiUrlRewriteList1", query.ToArray());
|
|
|
+ foreach(string sub in query)
|
|
|
+ {
|
|
|
+ RedisDbconn.Instance.AddList("ApiUrlRewriteList1", sub);
|
|
|
+ }
|
|
|
|
|
|
query = db.ApiUrlRewrite.Where(m => m.QueryCount == 2).ToList().Select(m => m.UrlPath).ToList();
|
|
|
RedisDbconn.Instance.Clear("ApiUrlRewriteList2");
|
|
|
- RedisDbconn.Instance.AddList("ApiUrlRewriteList2", query.ToArray());
|
|
|
+ foreach(string sub in query)
|
|
|
+ {
|
|
|
+ RedisDbconn.Instance.AddList("ApiUrlRewriteList2", sub);
|
|
|
+ }
|
|
|
|
|
|
AddSysLog("0", "ApiUrlRewrite", "SetRedis");
|
|
|
|