/// <summary> /// 获取国家列表包含常用国家 /// </summary> /// <returns></returns> public List <CountryExt> GetCommonCountryList() { if (Cache.Get("CommonCountryList") != null) { return(Cache.Get("CommonCountryList") as List <CountryExt>); } else { var list = _countryService.GetCommonCountryList(); if (list.Count > 0) { list.ForEach(p => p.CountryPinyin = PinyinHelper.GetShortPinyin(p.ChineseName)); } Cache.Add("CommonCountryList", list); return(list); } }