public IActionResult Main() { IAppOperator appOperator = SysUser.GetOperator(); if (appOperator.IsLogined()) { ViewBag.LoginStatus = "已登录"; } else { ViewBag.LoginStatus = "未登录"; } ViewBag.User = LibHelper.JSON.Serialize(appOperator); return(View()); }