/// <summary> /// 创建服务 /// </summary> public DimensionService() { UserCookie cookie = new UserCookie(); UserCookieService cookieService = DataCenter.UserCookieService; if (cookieService.GetCookie("DIMENSION", ref cookie) > 0) { try { m_dimensions = JsonConvert.DeserializeObject <List <DimensionInfo> >(AESHelper.Decrypt(cookie.m_value)); } catch (Exception ex) { } if (m_dimensions == null) { try { m_dimensions = JsonConvert.DeserializeObject <List <DimensionInfo> >(cookie.m_value); } catch (Exception ex) { } } } }
/// <summary> /// 创建服务 /// </summary> public PersonalService() { UserCookie cookie = new UserCookie(); UserCookieService cookieService = DataCenter.UserCookieService; if (cookieService.GetCookie("PERSONAL", ref cookie) > 0) { try { m_personals = JsonConvert.DeserializeObject <List <PersonalInfo> >(AESHelper.Decrypt(cookie.m_value)); } catch (Exception ex) { } if (m_personals == null) { try { m_personals = JsonConvert.DeserializeObject <List <PersonalInfo> >(cookie.m_value); } catch (Exception ex) { } } } }