public ActionResult Index(LoginUser userInfo) { var province = WebUserHelp.GetNowProvinceId(); var city = WebUserHelp.GetNowCityId(); //省份 List <FxtApi_SYSProvince> provinceList = _unitOfWork.CityService.GetProvinceCityListBy(userInfo.UserName, userInfo.SignName, userInfo.AppList); if (provinceList.Where(m => m.CityList.Any(c => c.CityId == city)).Count() < 1) { WebUserHelp.SetNowProvinceAndCity(0, 0); } ViewBag.UserName = userInfo.TrueName; ViewBag.ProvinceList = provinceList; ViewBag.NowProvinceId = WebUserHelp.GetNowProvinceId(); ViewBag.NowCityId = city; ViewBag.MenuList = GetMenuDtoList(userInfo.UserName, userInfo.NowCityId, userInfo.FxtCompanyId, userInfo); return(View()); }