|
@@ -57,11 +57,15 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
/// 页面模板更新信息列表
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public JsonResult IndexData(PageUpdateInfo data, string Kind = "default", int page = 1, int limit = 30)
|
|
|
+ public JsonResult IndexData(PageUpdateInfo data, string Kind = "default", string VerNo = "", int page = 1, int limit = 30)
|
|
|
{
|
|
|
|
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
|
|
|
+ if(!string.IsNullOrEmpty(VerNo))
|
|
|
+ {
|
|
|
+ Kind += "/" + VerNo;
|
|
|
+ }
|
|
|
string condition = " and SeoKeyword='" + Kind + "'";
|
|
|
|
|
|
Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.BsTables).IndexData("PageUpdateInfo", Fields, "ModulePath asc, Id desc", "False", page, limit, condition);
|
|
@@ -348,8 +352,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
/// 刷新文件
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public string UpdateTemplate(string Kind = "default")
|
|
|
+ public string UpdateTemplate(string Kind = "default", string VerNo = "")
|
|
|
{
|
|
|
+ if(!string.IsNullOrEmpty(VerNo))
|
|
|
+ {
|
|
|
+ Kind += "/" + VerNo;
|
|
|
+ }
|
|
|
SystemSet set = bsdb.SystemSet.FirstOrDefault() ?? new SystemSet();
|
|
|
GetSystemFiles(set, Kind);
|
|
|
foreach (string filename in SystemFiles)
|