RightControl.WebApp/Areas/SysSet/Controllers/WebSiteController.cs
(完整代码) 1KBusing RightControl.Common;
using RightControl.WebApp.Areas.Admin.Controllers;
using System;
using System.Web.Mvc;
namespace RightControl.WebApp.Areas.SysSet.Controllers
{
public class WebSiteController : BaseController
{
// GET: SysSet/WebSite
public override ActionResult Index(int? id)
{
return View(GetWebSiteInfo());
}
[HttpPost]
public ActionResult Index(WebSiteModel model)
{
try
{
Configs.SetValue("SiteName", model.SiteName);
Configs.SetValue("SiteDomain", model.SiteDomain);
Configs.SetValue("MetaKey", model.MetaKey);
Configs.SetValue("MetaDescribe", model.MetaDescribe);
Configs.SetValue("MaxFileUpload", model.MaxFileUpload);
Configs.SetValue("CacheTime", model.HomeTitle);
Configs.SetValue("CacheTime", model.CacheTime);
Configs.SetValue("CopyRight", model.CopyRight);
Configs.SetValue("UploadFileType", model.UploadFileType);
}
catch (Exception ex)
{
ViewBag.Msg = "Error:"+ex.Message;
return View(GetWebSiteInfo());
}
ViewBag.Msg = "修改成功!";
return View(GetWebSiteInfo());
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
