完成首次运行初始化安装程序

This commit is contained in:
2020-04-27 18:48:31 +08:00
parent 64c155d4f2
commit 1642536afd
11 changed files with 24232 additions and 8 deletions
@@ -21,6 +21,13 @@ namespace COMCMS.Web.Areas.AdminCP.Controllers
{
return Redirect("/AdminCP");
}
bool hasData = AdminMenu.FindCount(null, null, null, 0, 0) > 0;
if (!hasData)
{
return Redirect("/Home/Install");
}
string key = Utils.GetRandomChar(12);
SessionHelper.WriteSession("des_key", key);
ViewBag.key = key;