Browse Source

同步数据到redis添加版本号

lcl 7 months ago
parent
commit
de14a1fcdd
1 changed files with 5 additions and 2 deletions
  1. 5 2
      Areas/Admin/Controllers/MainServer/PageUpdateInfoController.cs

+ 5 - 2
Areas/Admin/Controllers/MainServer/PageUpdateInfoController.cs

@@ -442,9 +442,12 @@ namespace MySystem.Areas.Admin.Controllers
 
         #region 同步数据到redis
 
-        public string SyncAll(string Kind = "default")
+        public string SyncAll(string Kind = "default", string VerNo = "")
         {
-
+            if(!string.IsNullOrEmpty(VerNo))
+            {
+                Kind += "/" + VerNo;
+            }
             SystemSet set = bsdb.SystemSet.FirstOrDefault() ?? new SystemSet();
             RedisDbconn.Instance.Set("SystemSet", set);
             List<PageUpdateInfo> pages = bsdb.PageUpdateInfo.Where(m => m.SeoKeyword == Kind).ToList();