/// <summary> /// 获取酒店基础信息 /// </summary> /// <returns></returns> public DataResult GetHotelList() { var result = new DataResult(); var url = AtourAuth_URL + "hotel/getHotelList"; var citylist = AreaBll.GetCityList(); if (citylist != null && citylist.Any()) { foreach (var item in citylist) { Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("appid", AtourAuth_APPID); dic.Add("cityId", item.AA_CityId.ToString()); var sign = AtourSignUtil.GetSignUtil(dic); var hotellst = ApiHelper.HttpGet(url + "?appId=" + AtourAuth_APPID + "&cityId=" + item.AA_CityId.ToString() + "&sign=" + sign); if (!string.IsNullOrWhiteSpace(hotellst)) { var data = JsonConvert.DeserializeObject <AtourHotelResponse>(hotellst); if (data != null && data.msg == "success" && data.result.Any()) { foreach (var hotel in data.result) { } } } } } return(result); }