Ejemplo n.º 1
0
        public IActionResult Main()
        {
            IAppOperator appOperator = SysUser.GetOperator();

            if (appOperator.IsLogined())
            {
                ViewBag.LoginStatus = "已登录";
            }
            else
            {
                ViewBag.LoginStatus = "未登录";
            }

            ViewBag.User = LibHelper.JSON.Serialize(appOperator);

            return(View());
        }