/// <summary>
        /// 添加用户登录信息到cookie
        /// </summary>
        /// <param name="loginInfo"></param>
        private void AddLoginInfo(LoginInfo loginInfo)
        {
            var userInfo = CookieHelper.EncryptCookies(JsonHelper.ObjectToJson(loginInfo));

            CookieHelper.SetCookie(loginInfo.Key, userInfo, DateTime.Now.AddYears(1));
        }